@@ -74,13 +74,13 @@ class StructureTestCase extends TestCase
7474 $ this ->connection ->shouldReceive ('getDriver ' )->times (4 )->andReturn ($ this ->driver );
7575 $ this ->driver ->shouldReceive ('getForeignKeys ' )->with ('authors ' )->once ()->andReturn ([]);
7676 $ this ->driver ->shouldReceive ('getForeignKeys ' )->with ('Books ' )->once ()->andReturn ([
77- ['local ' => 'author_id ' , 'table ' => 'authors ' , 'foreign ' => 'id ' , 'name ' => 'authors_fk1 ' ],
78- ['local ' => 'translator_id ' , 'table ' => 'authors ' , 'foreign ' => 'id ' , 'name ' => 'authors_fk2 ' ],
77+ ['local ' => [ 'author_id ' ] , 'table ' => 'authors ' , 'foreign ' => [ 'id ' ] , 'name ' => 'authors_fk1 ' ],
78+ ['local ' => [ 'translator_id ' ] , 'table ' => 'authors ' , 'foreign ' => [ 'id ' ] , 'name ' => 'authors_fk2 ' ],
7979 ]);
8080 $ this ->driver ->shouldReceive ('getForeignKeys ' )->with ('tags ' )->once ()->andReturn ([]);
8181 $ this ->driver ->shouldReceive ('getForeignKeys ' )->with ('books_x_tags ' )->once ()->andReturn ([
82- ['local ' => 'book_id ' , 'table ' => 'Books ' , 'foreign ' => 'id ' , 'name ' => 'books_x_tags_fk1 ' ],
83- ['local ' => 'tag_id ' , 'table ' => 'tags ' , 'foreign ' => 'id ' , 'name ' => 'books_x_tags_fk2 ' ],
82+ ['local ' => [ 'book_id ' ] , 'table ' => 'Books ' , 'foreign ' => [ 'id ' ] , 'name ' => 'books_x_tags_fk1 ' ],
83+ ['local ' => [ 'tag_id ' ] , 'table ' => 'tags ' , 'foreign ' => [ 'id ' ] , 'name ' => 'books_x_tags_fk2 ' ],
8484 ]);
8585
8686 $ this ->structure = new StructureMock ($ this ->connection , $ this ->storage );
0 commit comments