/** * @test */ public function it_registers_an_array_of_commands_with_the_application() { $application_mock = TestFactory::mockApplication(); $application_mock->shouldReceive('add')->withAnyArgs()->once(); $this->assertEquals($application_mock, $this->generator->registerCommandsWithApplication($application_mock, ['Spinen\\ConnectWise\\Generator\\Stubs\\Commands\\Stub'])); }