diff options
author | David Rothstein <drothstein@gmail.com> | 2015-03-30 18:53:00 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2015-03-30 18:53:00 -0400 |
commit | 517f137d4aa1e3681f46a4767ef0e5bcefa7ea40 (patch) | |
tree | 481f567a187680497bfb073e537eb49df77ae1a4 | |
parent | a577cc98e33aa3f6630446625930123694cbbad1 (diff) | |
download | brdo-517f137d4aa1e3681f46a4767ef0e5bcefa7ea40.tar.gz brdo-517f137d4aa1e3681f46a4767ef0e5bcefa7ea40.tar.bz2 |
Issue #1018618 by manfer, joshi.rohit100: Wrong assertions in block.test
-rw-r--r-- | modules/block/block.test | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |