PhalconRest\Test\Unit\Api\CollectionTest::testGetEndpoints PHP Method

testGetEndpoints() public method

public testGetEndpoints ( )
    public function testGetEndpoints()
    {
        $endpoints = [Endpoint::get('/all', 'all'), Endpoint::get('/find/:id', 'find')];
        foreach ($endpoints as $endpoint) {
            $this->collection->endpoint($endpoint);
        }
        $this->assertEquals($this->collection->getEndpoints(), $endpoints);
    }