summaryrefslogtreecommitdiff
path: root/modules/block
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2015-03-30 18:53:00 -0400
committerDavid Rothstein <drothstein@gmail.com>2015-03-30 18:53:00 -0400
commit517f137d4aa1e3681f46a4767ef0e5bcefa7ea40 (patch)
tree481f567a187680497bfb073e537eb49df77ae1a4 /modules/block
parenta577cc98e33aa3f6630446625930123694cbbad1 (diff)
downloadbrdo-517f137d4aa1e3681f46a4767ef0e5bcefa7ea40.tar.gz
brdo-517f137d4aa1e3681f46a4767ef0e5bcefa7ea40.tar.bz2
Issue #1018618 by manfer, joshi.rohit100: Wrong assertions in block.test
Diffstat (limited to 'modules/block')
-rw-r--r--modules/block/block.test4
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) {