diff --git a/application/tests/controllers/catalog/Page_test.php b/application/tests/controllers/catalog/Page_test.php new file mode 100644 index 00000000..81d71e6a --- /dev/null +++ b/application/tests/controllers/catalog/Page_test.php @@ -0,0 +1,54 @@ +request('GET', array('Page', 'index', $url)); + foreach ($expected as $str) { + $this->assertStringContainsString($str, $response); + } + } + + public static function provider() + { + return array( + + // A simple test case with single-quote in title + array( + 'url' => 'doctors-red-lamp-by-various', + 'expected' => array( + '