$this->assertIdentical($links,array('active'=>array('en'),'inactive'=>array('fr')),'Only the current language list item is marked as active on the language switcher block.');
$this->assertIdentical($anchors,array('active'=>array('en'),'inactive'=>array('fr')),'Only the current language anchor is marked as active on the language switcher block.');
@@ -105,7 +91,7 @@ public function testRecentNodeBlock() {
// see the block.
$this->drupalLogout();
$this->drupalGet('');
$this->assertNoText($block['title'],'Block was not found.');
$this->assertNoText($block['subject'],'Block was not found.');
// Test that only the 2 latest nodes are shown.
$this->drupalLogin($this->webUser);
...
...
@@ -114,7 +100,7 @@ public function testRecentNodeBlock() {
$this->assertText($node3->label(),'Node found in block.');
// Check to make sure nodes are in the right order.
$this->assertTrue($this->xpath('//div[@id="block-'.strtolower($block['machine_name']).'"]/div/table/tbody/tr[position() = 1]/td/div/a[text() = "'.$node3->label().'"]'),'Nodes were ordered correctly in block.');
$this->assertTrue($this->xpath('//div[@id="block-test-block"]/div/table/tbody/tr[position() = 1]/td/div/a[text() = "'.$node3->label().'"]'),'Nodes were ordered correctly in block.');
$this->drupalLogout();
$this->drupalLogin($this->adminUser);
...
...
@@ -137,21 +123,10 @@ public function testRecentNodeBlock() {
$this->assertText($node3->label(),'Node found in block.');
$this->assertText($node4->label(),'Node found in block.');