|
|
@@ -352,6 +352,20 @@ abstract class IntegrationTestCase extends MyControllerTestCase {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Assert content does not exist in the response body.
|
|
|
+ *
|
|
|
+ * @param string $content The content to check for.
|
|
|
+ * @param string $message The failure message that will be appended to the generated message.
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function assertResponseNotContains($content, $message = '') {
|
|
|
+ if (!$this->_response) {
|
|
|
+ $this->fail('No response set, cannot assert content. ' . $message);
|
|
|
+ }
|
|
|
+ $this->assertNotContains($content, $this->_response->body(), $message);
|
|
|
+ }
|
|
|
+
|
|
|
+/**
|
|
|
* Assert that the search string was in the template name.
|
|
|
*
|
|
|
* @param string $content The content to check for.
|