diff --git a/src/Tests/TMGMTUiTest.php b/src/Tests/TMGMTUiTest.php index 65f21ed..bd91ecd 100644 --- a/src/Tests/TMGMTUiTest.php +++ b/src/Tests/TMGMTUiTest.php @@ -763,6 +763,10 @@ class TMGMTUiTest extends EntityTestBase { $item = $job->addItem('test_source', 'test', 1); $item->setState(JobItem::STATE_ACTIVE); + // Check that there is no delete link on item review form. + $this->drupalGet('admin/tmgmt/items/' . $item->id()); + $this->assertNoFieldById('edit-delete', NULL, 'There is no delete button.'); + $this->drupalGet('admin/tmgmt/jobs/' . $job->id()); // Check that there is no delete link. @@ -788,6 +792,13 @@ class TMGMTUiTest extends EntityTestBase { $item = reset($items); $this->assertTrue($item->isAborted()); + // Check for delete button on item review form. + $this->drupalGet('admin/tmgmt/items/' . $item->id()); + $this->assertFieldById('edit-delete', NULL, 'There is delete button.'); + + // Check that there is no accept button on item review form. + $this->assertNoFieldById('edit-accept', NULL, 'There is no accept button.'); + $this->drupalGet('admin/tmgmt/jobs/' . $job->id()); // Check for delete link.