setAjax(true); $this->assertTrue($response->isAjax()); $response->setAjax(false); $this->assertFalse($response->isAjax()); } }