From 517f137d4aa1e3681f46a4767ef0e5bcefa7ea40 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 30 Mar 2015 18:53:00 -0400 Subject: Issue #1018618 by manfer, joshi.rohit100: Wrong assertions in block.test --- modules/block/block.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/block') diff --git a/modules/block/block.test b/modules/block/block.test index 99c81dc6e..f20e3c878 100644 --- a/modules/block/block.test +++ b/modules/block/block.test @@ -75,7 +75,7 @@ class BlockTestCase extends DrupalWebTestCase { $bid = db_query("SELECT bid FROM {block_custom} WHERE info = :info", array(':info' => $custom_block['info']))->fetchField(); // Check to see if the custom block was created by checking that it's in the database. - $this->assertNotNull($bid, 'Custom block found in database'); + $this->assertTrue($bid, 'Custom block found in database'); // Check that block_block_view() returns the correct title and content. $data = block_block_view($bid); @@ -305,7 +305,7 @@ class BlockTestCase extends DrupalWebTestCase { ))->fetchField(); // Check to see if the block was created by checking that it's in the database. - $this->assertNotNull($bid, 'Block found in database'); + $this->assertTrue($bid, 'Block found in database'); // Check whether the block can be moved to all available regions. foreach ($this->regions as $region) { -- cgit v1.2.3