createSession('session 1'); $tokenFrom = $this->getUserToken( [ 'username' => 'admin', 'password' => 'admin', ] ); $response = $this->createClientWithCredentials($tokenFrom)->request( 'POST', '/sessions/'.$session->getId().'/about' ); $this->assertResponseIsSuccessful(); $this->assertResponseStatusCodeSame(200); $this->assertStringContainsString('session 1', $response->getContent()); } }