You are here

public function MetatagTestBase::clearAllCaches in Metatag 7

Load the Performance admin page and clear all caches.

1 call to MetatagTestBase::clearAllCaches()
MetatagCoreWithViewsTest::testTermViews in tests/MetatagCoreWithViewsTest.test
Test the taxonomy term page still works when displayed via Views.

File

tests/MetatagTestBase.test, line 60
A base class for the Metatag tests, provides shared methods.

Class

MetatagTestBase
A base class for the Metatag tests, provides shared methods.

Code

public function clearAllCaches() {
  $this
    ->drupalGet('admin/config/development/performance');
  $this
    ->assertResponse(200);
  $this
    ->assertText(t('Performance'));
  $this
    ->assertText(t('Clear cache'));
  $this
    ->drupalPost(NULL, array(), t('Clear all caches'));
  $this
    ->assertResponse(200);
  $this
    ->assertText(t('Caches cleared'));
}