Auth0\Tests\BasicCrudTest::testAll PHP Method

testAll() public method

public testAll ( )
    public function testAll()
    {
        $client = $this->getApiClient();
        $options = $client->getApiClient()->get()->getGuzzleOptions();
        $this->assertArrayHasKey('base_uri', $options);
        $this->assertEquals("https://{$this->domain}/api/v2/", $options['base_uri']);
        $created = $client->create($this->getCreateBody());
        $all = $this->getAll($client, $created);
        $found = false;
        foreach ($all as $value) {
            if ($this->getId($value) === $this->getId($created)) {
                $found = true;
                break;
            }
        }
        $this->assertTrue($found, 'Created item not found');
        $this->afterCreate($created);
        $client3 = $client->update($this->getId($created), $this->getUpdateBody());
        $get = $client->get($this->getId($created));
        $this->afterUpdate($get);
        $client->delete($this->getId($created));
    }