Zendesk\API\UnitTests\Core\AppInstallationsTest::testCreate PHP Method

testCreate() public method

Tests if the client calls the correct endpoint for installing an app
public testCreate ( )
    public function testCreate()
    {
        $faker = Factory::create();
        $params = ['app_id' => $faker->randomNumber(), 'settings' => [$faker->word => $faker->boolean(), $faker->word => $faker->randomNumber()]];
        $this->assertEndpointCalled(function () use($params) {
            $this->client->appInstallations()->create($params);
        }, "apps/installations.json", 'POST', ['postFields' => $params]);
    }