Zendesk\API\UnitTests\Embeddable\ConfigSetsTest::testCreate PHP Method

testCreate() public method

Tests if the client can call and build the create config sets endpoint
public testCreate ( )
    public function testCreate()
    {
        $faker = Factory::create();
        $params = ['color' => $faker->hexColor, 'position' => $faker->randomElement(['left', 'right'])];
        $this->assertEndpointCalled(function () use($params) {
            $this->client->embeddable->configSets()->create($params);
        }, 'embeddable/api/config_sets.json', 'POST', ['postFields' => ['config_set' => $params]]);
    }