You are here

private function CopyrightBlockTestCase::assertBlockContent in Copyright Block module 7.2

Assert the contents of the copyright block.

Parameters

array $edit: The parameters to be POSTed to the block form.

string $output: The expected output to test for.

3 calls to CopyrightBlockTestCase::assertBlockContent()
CopyrightBlockTestCase::testDefaultSettings in ./copyright_block.test
CopyrightBlockTestCase::testDifferentSeparator in ./copyright_block.test
CopyrightBlockTestCase::testDifferentStartDate in ./copyright_block.test

File

./copyright_block.test, line 72

Class

CopyrightBlockTestCase

Code

private function assertBlockContent(array $edit, $output) {
  $path = 'admin/structure/block/manage/copyright_block/copyright_block/configure';
  $this
    ->drupalPost($path, $edit, t('Save block'));
  $this
    ->assertRaw(sprintf('Copyright © %s, %s.', variable_get('site_name', 'Drupal'), $output));
}