@@ -64,7 +64,6 @@ public function mockDBTransactionStartRollback(int $count = 1): void
6464 public function mockGettingModelInstance (object $ model ): void
6565 {
6666 $ laravelConnectionMock = Mockery::mock (LaravelConnection::class);
67- $ laravelConnectionMock
6867 ->shouldReceive ('getConfig ' )
6968 ->andReturn ([
7069 'database ' => 'my_db ' ,
@@ -79,12 +78,11 @@ public function mockGettingModelInstance(object $model): void
7978 ->andReturn ($ laravelConnectionMock );
8079
8180 $ schemaManagerMock = Mockery::mock (AbstractSchemaManager::class);
82- $ schemaManagerMock
8381 ->shouldReceive ('listTableColumns ' )
8482 ->andReturn ([
85- new Column ('id ' , new IntegerType ),
86- new Column ('title ' , new StringType ),
87- new Column ('created_at ' , new DateTimeType ),
83+ new Column ('id ' , new IntegerType () ),
84+ new Column ('title ' , new StringType () ),
85+ new Column ('created_at ' , new DateTimeType () ),
8886 ]);
8987
9088 $ connectionMock = Mockery::mock (Connection::class)->makePartial ();
@@ -93,7 +91,6 @@ public function mockGettingModelInstance(object $model): void
9391 ->andReturn ($ schemaManagerMock );
9492
9593 $ driverManagerMock = Mockery::mock ('alias: ' . DriverManager::class);
96- $ driverManagerMock
9794 ->shouldReceive ('getConnection ' )
9895 ->with ([
9996 'dbname ' => 'my_db ' ,
0 commit comments