drupalLogin($this->drupalCreateUser($permissions)); } /** * Tests views_ui list to see if translate link is added to operations. */ public function testTranslateOperationInViewListUi() { // Views UI List 'admin/structure/views'. $this->drupalGet('admin/structure/views'); $translate_link = 'admin/structure/views/view/test_view/translate'; // Test if the link to translate the test_view is on the page. $this->assertLinkByHref($translate_link); // Test if the link to translate actually goes to the translate page. $this->drupalGet($translate_link); $this->assertRaw('' . t('Language') . ''); // Test that the 'Edit' tab appears. $this->assertLinkByHref('admin/structure/views/view/test_view'); } }