@@ -58,24 +58,24 @@ class StructureTestCase extends TestCase
5858 ['name ' => 'books_view ' , 'view ' => TRUE ],
5959 ]);
6060 $ this ->driver ->shouldReceive ('getColumns ' )->with ('authors ' )->once ()->andReturn ([
61- ['name ' => 'id ' , 'primary ' => TRUE , 'vendor ' => ['sequence ' => '"public"."authors_id_seq" ' ]],
62- ['name ' => 'name ' , 'primary ' => FALSE , 'vendor ' => []],
61+ ['name ' => 'id ' , 'primary ' => TRUE , 'autoincrement ' => TRUE , ' vendor ' => ['sequence ' => '"public"."authors_id_seq" ' ]],
62+ ['name ' => 'name ' , 'primary ' => FALSE , 'autoincrement ' => FALSE , ' vendor ' => []],
6363 ]);
6464 $ this ->driver ->shouldReceive ('getColumns ' )->with ('Books ' )->once ()->andReturn ([
65- ['name ' => 'id ' , 'primary ' => TRUE , 'vendor ' => ['sequence ' => '"public"."Books_id_seq" ' ]],
66- ['name ' => 'title ' , 'primary ' => FALSE , 'vendor ' => []],
65+ ['name ' => 'id ' , 'primary ' => TRUE , 'autoincrement ' => TRUE , ' vendor ' => ['sequence ' => '"public"."Books_id_seq" ' ]],
66+ ['name ' => 'title ' , 'primary ' => FALSE , 'autoincrement ' => FALSE , ' vendor ' => []],
6767 ]);
6868 $ this ->driver ->shouldReceive ('getColumns ' )->with ('tags ' )->once ()->andReturn ([
69- ['name ' => 'id ' , 'primary ' => TRUE , 'vendor ' => []],
70- ['name ' => 'name ' , 'primary ' => FALSE , 'vendor ' => []],
69+ ['name ' => 'id ' , 'primary ' => TRUE , 'autoincrement ' => TRUE , ' vendor ' => []],
70+ ['name ' => 'name ' , 'primary ' => FALSE , 'autoincrement ' => FALSE , ' vendor ' => []],
7171 ]);
7272 $ this ->driver ->shouldReceive ('getColumns ' )->with ('books_x_tags ' )->once ()->andReturn ([
73- ['name ' => 'book_id ' , 'primary ' => TRUE , 'vendor ' => []],
74- ['name ' => 'tag_id ' , 'primary ' => TRUE , 'vendor ' => []],
73+ ['name ' => 'book_id ' , 'primary ' => TRUE , 'autoincrement ' => FALSE , ' vendor ' => []],
74+ ['name ' => 'tag_id ' , 'primary ' => TRUE , 'autoincrement ' => FALSE , ' vendor ' => []],
7575 ]);
7676 $ this ->driver ->shouldReceive ('getColumns ' )->with ('books_view ' )->once ()->andReturn ([
77- ['name ' => 'id ' , 'primary ' => FALSE , 'vendor ' => []],
78- ['name ' => 'title ' , 'primary ' => FALSE , 'vendor ' => []],
77+ ['name ' => 'id ' , 'primary ' => FALSE , 'autoincrement ' => FALSE , ' vendor ' => []],
78+ ['name ' => 'title ' , 'primary ' => FALSE , 'autoincrement ' => FALSE , ' vendor ' => []],
7979 ]);
8080 $ this ->connection ->shouldReceive ('getSupplementalDriver ' )->times (4 )->andReturn ($ this ->driver );
8181 $ this ->driver ->shouldReceive ('getForeignKeys ' )->with ('authors ' )->once ()->andReturn ([]);
@@ -108,8 +108,8 @@ class StructureTestCase extends TestCase
108108 public function testGetColumns ()
109109 {
110110 $ columns = [
111- ['name ' => 'id ' , 'primary ' => TRUE , 'vendor ' => []],
112- ['name ' => 'name ' , 'primary ' => FALSE , 'vendor ' => []],
111+ ['name ' => 'id ' , 'primary ' => TRUE , 'autoincrement ' => TRUE , ' vendor ' => []],
112+ ['name ' => 'name ' , 'primary ' => FALSE , 'autoincrement ' => FALSE , ' vendor ' => []],
113113 ];
114114
115115 Assert::same ($ columns , $ this ->structure ->getColumns ('tags ' ));
@@ -138,9 +138,9 @@ class StructureTestCase extends TestCase
138138 $ this ->driver ->shouldReceive ('isSupported ' )->with ('sequence ' )->once ()->andReturn (FALSE );
139139 $ this ->driver ->shouldReceive ('isSupported ' )->with ('sequence ' )->times (3 )->andReturn (TRUE );
140140
141- Assert::null ( $ this ->structure ->getPrimaryKeySequence ('Authors ' ));
142- Assert::same (' "public"."authors_id_seq" ' , $ this ->structure ->getPrimaryKeySequence ('Authors ' ));
143- Assert::null ( $ this ->structure ->getPrimaryKeySequence ('tags ' ));
141+ Assert::same ([ ' name ' => ' id ' , ' sequence ' => NULL ], $ this ->structure ->getPrimaryKeySequence ('Authors ' ));
142+ Assert::same ([ ' name ' => ' id ' , ' sequence ' => ' "public"."authors_id_seq" '] , $ this ->structure ->getPrimaryKeySequence ('Authors ' ));
143+ Assert::same ([ ' name ' => ' id ' , ' sequence ' => NULL ] , $ this ->structure ->getPrimaryKeySequence ('tags ' ));
144144 Assert::null ($ this ->structure ->getPrimaryKeySequence ('books_x_tags ' ));
145145 }
146146
0 commit comments