Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
global rules got a find_string & replace_string
so they can't be empty anymore
  • Loading branch information
j0k3r committed Oct 9, 2017
1 parent 1052645 commit 147f255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Extractor/ContentExtractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ public function testBuildSiteConfig()

$this->assertInstanceOf('Graby\SiteConfig\SiteConfig', $res);

foreach (['author', 'single_page_link', 'next_page_link', 'find_string', 'replace_string'] as $value) {
foreach (['author', 'single_page_link', 'next_page_link'] as $value) {
$this->assertEmpty($res->$value, 'Check empty value for: ' . $value);
}

foreach (['date', 'strip_image_src', 'http_header'] as $value) {
foreach (['date', 'strip_image_src', 'http_header', 'find_string', 'replace_string'] as $value) {
$this->assertNotEmpty($res->$value, 'Check not empty value for: ' . $value);
}

Expand Down

0 comments on commit 147f255

Please sign in to comment.