request(Request::METHOD_GET, 'api/rest/source/HOMEPAGE.html?frame=1'); $this->assertEquals(200, $client->getResponse()->getStatusCode()); $this->assertContains('getResponse()->getContent()); } public function testHomepageFrameWithoutParameter(): void { $client = static::createClient(); $client->request(Request::METHOD_GET, 'api/rest/source/HOMEPAGE.html'); $this->assertEquals(200, $client->getResponse()->getStatusCode()); $content = $client->getResponse()->getContent(); $this->assertContains('request(Request::METHOD_GET, 'api/rest/source/HOMEPAGE.html?frame=0'); $this->assertEquals(200, $client->getResponse()->getStatusCode()); $content = $client->getResponse()->getContent(); $this->assertNotContains('request(Request::METHOD_GET, 'api/rest/source/HOMEPAGE.html?frame=true'); $this->assertEquals(500, $client->getResponse()->getStatusCode()); } }