File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
tests/lib/Integration/Console Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 33All notable changes to this project will be documented in this file. This project adheres to
44[ Semantic Versioning] ( http://semver.org/ ) and [ this changelog format] ( http://keepachangelog.com/ ) .
55
6+ ## Unreleased
7+
8+ ### Fixed
9+ - [ #3 ] ( https://github.com/laravel-json-api/laravel/issues/3 )
10+ Example server registration in the published configuration file prevented developer from creating
11+ a ` v1 ` server after adding this package to their Laravel application.
12+
613## [ 1.0.0-alpha.1] - 2021-01-25
714
815Initial release.
Original file line number Diff line number Diff line change 2727 | class name of the server class.
2828 */
2929 'servers ' => [
30- 'v1 ' => \App \JsonApi \V1 \Server::class,
30+ // 'v1' => \App\JsonApi\V1\Server::class,
3131 ],
3232];
Original file line number Diff line number Diff line change @@ -52,19 +52,14 @@ protected function tearDown(): void
5252
5353 public function test (): void
5454 {
55- config ()->set ('jsonapi ' , [
56- 'namespace ' => 'JsonApi ' ,
57- 'servers ' => [
58- 'v1 ' => Server::class,
59- ],
60- ]);
55+ config ()->set ('jsonapi ' , require __DIR__ . '/../../../../config/jsonapi.php ' );
6156
6257 $ result = $ this ->artisan ('jsonapi:server ' , [
63- 'name ' => 'v2 '
58+ 'name ' => 'v1 '
6459 ]);
6560
6661 $ this ->assertSame (0 , $ result );
67- $ this ->assertServerCreated ('JsonApi ' , 'V2 ' , '/api/v2 ' );
62+ $ this ->assertServerCreated ('JsonApi ' , 'V1 ' , '/api/v1 ' );
6863 }
6964
7065 public function testWithUri (): void
You can’t perform that action at this time.
0 commit comments