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); }
protected function _before() { $this->endpoint = Endpoint::get('/all', 'all')->name('All')->description('a short description')->exampleResponse(self::EXAMPLE_RESPONSE); }