function TMGMTEntitySourceListTestCase::testAvailabilityOfEntityLists in Translation Management Tool 7
File
- sources/
entity/ ui/ tmgmt_entity_ui.list.test, line 85
Class
Code
function testAvailabilityOfEntityLists() {
$this
->drupalGet('admin/tmgmt/sources/entity_comment');
// Check if we are at comments page.
$this
->assertText(t('Comment overview (Entity)'));
// No comments yet - empty message is expected.
$this
->assertText(t('No entities matching given criteria have been found.'));
$this
->drupalGet('admin/tmgmt/sources/entity_node');
// Check if we are at nodes page.
$this
->assertText(t('Node overview (Entity)'));
// We expect article title as article node type is entity translatable.
$this
->assertText($this->nodes['article']['en'][0]->title);
// Page node type should not be listed as it is not entity translatable.
$this
->assertNoText($this->nodes['page']['en'][0]->title);
}