1.20.x views_analyze.test | ViewsAnalyzeTest::testAnalyzeBasic() |
Tests that analyze works in general.
File
- modules/
views/ tests/ views_analyze.test, line 28 - Definition of ViewsAnalyzeTest.
Class
- ViewsAnalyzeTest
- Tests the views analyze system.
Code
function testAnalyzeBasic() {
$this->backdropLogin($this->admin);
// Enable the taxonomy_term view and click the analyse button.
$view = views_get_view('taxonomy_term');
$view->save();
$this->backdropGet('admin/structure/views/view/taxonomy_term/configure');
$this->assertLink(t('analyze view'));
// This redirects the user to the form.
$this->clickLink(t('analyze view'));
$this->assertText(t('View analysis'));
// This redirects the user back to the main views configure page.
$this->backdropPost(NULL, array(), t('Ok'));
}