diff --git a/simpletest_example/simpletest_example.test b/simpletest_example/simpletest_example.test index 75f8fa227ec5521093f152b641436273614da26f..76665766323a8824d474cd92412c17a92548722d 100644 --- a/simpletest_example/simpletest_example.test +++ b/simpletest_example/simpletest_example.test @@ -52,12 +52,12 @@ class SimpletestExampleTestCase extends DrupalWebTestCase { // indicate that the examples module was failing tests. if (!$this->runningOnTestbot()) { $this->drupalGet("node/{$node->nid}/edit"); + // Make sure we don't get a 401 unauthorized response: + $this->assertResponse(200, t('User is allowed to edit the content.')); - // Looking for text to determine whether we were successful opening edit - // page. - $this->assertText(t("Edit Simpletest Example Node Type @title", array('@title' => $settings['title'])), "Found Page edit title"); - // Looking for a DOM node by ID to see if we were successful. - $this->assertFieldById('edit-title', '', 'Found edit-title field as indication that we got to the edit page'); + // Looking for title text in the page to determine whether we were + // successful opening edit form. + $this->assertText(t("@title", array('@title' => $settings['title'])), "Found title in edit form"); } }