Révision 6ff32cea
Ajouté par Florent Torregrosa il y a environ 9 ans
drupal7/modules/block/block.test | ||
---|---|---|
75 | 75 |
$bid = db_query("SELECT bid FROM {block_custom} WHERE info = :info", array(':info' => $custom_block['info']))->fetchField(); |
76 | 76 |
|
77 | 77 |
// Check to see if the custom block was created by checking that it's in the database. |
78 |
$this->assertNotNull($bid, 'Custom block found in database');
|
|
78 |
$this->assertTrue($bid, 'Custom block found in database');
|
|
79 | 79 |
|
80 | 80 |
// Check that block_block_view() returns the correct title and content. |
81 | 81 |
$data = block_block_view($bid); |
... | ... | |
305 | 305 |
))->fetchField(); |
306 | 306 |
|
307 | 307 |
// Check to see if the block was created by checking that it's in the database. |
308 |
$this->assertNotNull($bid, 'Block found in database');
|
|
308 |
$this->assertTrue($bid, 'Block found in database');
|
|
309 | 309 |
|
310 | 310 |
// Check whether the block can be moved to all available regions. |
311 | 311 |
foreach ($this->regions as $region) { |
Formats disponibles : Unified diff
Update core to 7.36