diff --git a/src/Tests/IntegrationTest.php b/src/Tests/IntegrationTest.php index 1b4a5c0..8a87fcf 100644 --- a/src/Tests/IntegrationTest.php +++ b/src/Tests/IntegrationTest.php @@ -164,6 +164,16 @@ class IntegrationTest extends WebTestBase { // Since none of the other tests would work, bail at this point. throw new SearchApiException(); } + + // Test the "Save and edit" button. + $this->indexId = 'test_index2'; + $edit['id'] = $this->indexId; + $this->drupalPostForm(NULL, $edit, $this->t('Save and edit')); + + $this->assertText($this->t('The index was successfully saved.')); + /** @var $index \Drupal\search_api\IndexInterface */ + $index = Index::load($this->indexId); + $this->assertUrl($index->urlInfo('fields'), array(), 'Correct redirect to index fields page.'); } /**