@@ -82,13 +82,13 @@ class StructureTestCase extends TestCase
8282 $ this ->connection ->shouldReceive ('getSupplementalDriver ' )->times (4 )->andReturn ($ this ->driver );
8383 $ this ->driver ->shouldReceive ('getForeignKeys ' )->with ('authors ' )->once ()->andReturn ([]);
8484 $ this ->driver ->shouldReceive ('getForeignKeys ' )->with ('Books ' )->once ()->andReturn ([
85- ['local ' => 'author_id ' , 'table ' => 'authors ' , 'foreign ' => 'id ' ],
86- ['local ' => 'translator_id ' , 'table ' => 'authors ' , 'foreign ' => 'id ' ],
85+ ['local ' => 'author_id ' , 'table ' => 'authors ' , 'foreign ' => 'id ' , ' name ' => ' authors_fk1 ' ],
86+ ['local ' => 'translator_id ' , 'table ' => 'authors ' , 'foreign ' => 'id ' , ' name ' => ' authors_fk2 ' ],
8787 ]);
8888 $ this ->driver ->shouldReceive ('getForeignKeys ' )->with ('tags ' )->once ()->andReturn ([]);
8989 $ this ->driver ->shouldReceive ('getForeignKeys ' )->with ('books_x_tags ' )->once ()->andReturn ([
90- ['local ' => 'book_id ' , 'table ' => 'Books ' , 'foreign ' => 'id ' ],
91- ['local ' => 'tag_id ' , 'table ' => 'tags ' , 'foreign ' => 'id ' ],
90+ ['local ' => 'book_id ' , 'table ' => 'Books ' , 'foreign ' => 'id ' , ' name ' => ' books_x_tags_fk1 ' ],
91+ ['local ' => 'tag_id ' , 'table ' => 'tags ' , 'foreign ' => 'id ' , ' name ' => ' books_x_tags_fk2 ' ],
9292 ]);
9393
9494 $ this ->structure = new StructureMock ($ this ->connection , $ this ->storage );
0 commit comments