Automattic\Wistia\Tests\ApiMethodsTraitTest::test_update_project PHP Méthode

test_update_project() public méthode

Test Client::update_project
public test_update_project ( )
    public function test_update_project()
    {
        $project_name = $this->project->name;
        $updated_project = $this->client->update_project($this->project->hashedId, ['name' => 'Updated Test Project']);
        $this->assertInternalType('object', $updated_project);
        $this->assertEquals($this->project->id, $updated_project->id);
        $this->assertEquals('Updated Test Project', $updated_project->name);
        $this->client->update_project($this->project->hashedId, ['name' => $project_name]);
    }