Ojs\ApiBundle\Tests\Controller\ContactRestControllerTest::testPutContactAction PHP Метод

testPutContactAction() публичный Метод

    public function testPutContactAction()
    {
        $content = ['title' => 1, 'fullName' => 'PHPUnit Test Full Name Field en - PUT', 'address' => 'PHPUnit Test Address Field en - PUT', 'phone' => 'PHPUnit Test Phone Field en - PUT', 'email' => 'PHPUnit Test Email Field en - PUT', 'tags' => ['phpunit', 'PUT'], 'contactType' => 4, 'journal' => 1, 'country' => 216];
        $this->client->request('PUT', '/api/v1/contacts/550?apikey=' . $this->apikey, [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($content));
        $this->assertStatusCode(201, $this->client);
    }