File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- use Mockery as m ;
4-
53class DbIsMysqlTest extends TestCase
64{
75 /** @test */
86 public function it_returns_true_if_laravel_database_default_connection_is_mysql ()
97 {
10- $ mock = m ::mock ('alias:Illuminate\Support\Facades\DB ' );
8+ $ mock = Mockery ::mock ('alias:Illuminate\Support\Facades\DB ' );
119 $ mock ->shouldReceive ('getDefaultConnection ' )->withNoArgs ()->once ()->andReturn ('mysql ' );
1210
1311 $ this ->assertTrue (db_is_mysql ());
@@ -16,7 +14,7 @@ public function it_returns_true_if_laravel_database_default_connection_is_mysql(
1614 /** @test */
1715 public function it_returns_false_if_laravel_database_default_connection_is_not_mysql ()
1816 {
19- $ mock = m ::mock ('alias:Illuminate\Support\Facades\DB ' );
17+ $ mock = Mockery ::mock ('alias:Illuminate\Support\Facades\DB ' );
2018 $ mock ->shouldReceive ('getDefaultConnection ' )->withNoArgs ()->once ()->andReturn ('sqlite ' );
2119
2220 $ this ->assertFalse (db_is_mysql ());
You can’t perform that action at this time.
0 commit comments