@@ -12,8 +12,7 @@ use Tester\Assert;
1212require __DIR__ . '/../../bootstrap.php ' ;
1313
1414
15- // basic test
16- test (function () {
15+ test ('basic test ' , function () {
1716 $ structure = Mockery::mock (Nette \Database \IStructure::class);
1817 $ structure ->shouldReceive ('getBelongsToReference ' )->with ('books ' )->andReturn ([
1918 'author_id ' => 'authors ' ,
@@ -26,8 +25,7 @@ test(function () {
2625 Assert::same (['authors ' , 'translator_id ' ], $ conventions ->getBelongsToReference ('books ' , 'translator ' ));
2726});
2827
29- // basic test
30- test (function () {
28+ test ('basic test ' , function () {
3129 $ structure = Mockery::mock (Nette \Database \IStructure::class);
3230 $ structure ->shouldReceive ('getBelongsToReference ' )->with ('public.books ' )->andReturn ([
3331 'author_id ' => 'public.authors ' ,
@@ -40,8 +38,7 @@ test(function () {
4038 Assert::same (['public.authors ' , 'translator_id ' ], $ conventions ->getBelongsToReference ('public.books ' , 'translator ' ));
4139});
4240
43- // tests order of table columns with foreign keys
44- test (function () {
41+ test ('tests order of table columns with foreign keys ' , function () {
4542 $ structure = Mockery::mock (Nette \Database \IStructure::class);
4643 $ structure ->shouldReceive ('getBelongsToReference ' )->with ('books ' )->andReturn ([
4744 'translator_id ' => 'authors ' ,
@@ -54,8 +51,7 @@ test(function () {
5451});
5552
5653
57- // tests case insensivity
58- test (function () {
54+ test ('tests case insensivity ' , function () {
5955 $ structure = Mockery::mock (Nette \Database \IStructure::class);
6056 $ structure ->shouldReceive ('getBelongsToReference ' )->with ('books ' )->andReturn ([
6157 'author_id ' => 'authors ' ,
@@ -68,8 +64,7 @@ test(function () {
6864});
6965
7066
71- // tests case insensivity and prefixes
72- test (function () {
67+ test ('tests case insensivity and prefixes ' , function () {
7368 $ structure = Mockery::mock (Nette \Database \IStructure::class);
7469 $ structure ->shouldReceive ('getBelongsToReference ' )->with ('nBooks ' )->andReturn ([
7570 'authorId ' => 'nAuthors ' ,
@@ -83,8 +78,7 @@ test(function () {
8378});
8479
8580
86- // tests rebuilt
87- test (function () {
81+ test ('tests rebuilt ' , function () {
8882 $ structure = Mockery::mock (Nette \Database \IStructure::class);
8983 $ structure ->shouldReceive ('isRebuilt ' )->andReturn (false );
9084 $ structure ->shouldReceive ('rebuild ' );
@@ -101,8 +95,7 @@ test(function () {
10195});
10296
10397
104- // tests already rebuilt structure
105- test (function () {
98+ test ('tests already rebuilt structure ' , function () {
10699 $ structure = Mockery::mock (Nette \Database \IStructure::class);
107100 $ structure ->shouldReceive ('isRebuilt ' )->andReturn (true );
108101 $ structure ->shouldReceive ('getBelongsToReference ' )->with ('books ' )->andReturn ([])->once ();
0 commit comments