File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ public function tearDown()
15
15
public function testProperFilesAreCheckedByLoader ()
16
16
{
17
17
$ loader = new ClassLoader (array (__DIR__ , __DIR__ .'/Models ' ), $ files = m::mock ('Illuminate\Filesystem\Filesystem ' ));
18
- $ files ->shouldReceive ('exists ' )->once ()->with (__DIR__ .'/User/ Model.php ' )->andReturn (false );
19
- $ files ->shouldReceive ('exists ' )->once ()->with (__DIR__ .'/Models/User/ Model.php ' )->andReturn (true );
20
- $ files ->shouldReceive ('requireOnce ' )->once ()->with (__DIR__ .'/Models/User/ Model.php ' );
18
+ $ files ->shouldReceive ('exists ' )->once ()->with (__DIR__ .'/User ' . DIRECTORY_SEPARATOR . ' Model.php ' )->andReturn (false );
19
+ $ files ->shouldReceive ('exists ' )->once ()->with (__DIR__ .'/Models/User ' . DIRECTORY_SEPARATOR . ' Model.php ' )->andReturn (true );
20
+ $ files ->shouldReceive ('requireOnce ' )->once ()->with (__DIR__ .'/Models/User ' . DIRECTORY_SEPARATOR . ' Model.php ' );
21
21
22
22
$ this ->assertTrue ($ loader ->load ('\\User \\Model ' ));
23
23
}
Original file line number Diff line number Diff line change @@ -79,8 +79,7 @@ protected function getEnvironment()
79
79
$ request = m::mock ('Illuminate\Http\Request ' );
80
80
$ view = m::mock ('Illuminate\View\Environment ' );
81
81
$ trans = m::mock ('Symfony\Component\Translation\TranslatorInterface ' );
82
-
83
- $ view ->shouldReceive ('addNamespace ' )->once ()->with ('pagination ' , realpath (__DIR__ .'/../../src/Illuminate/Pagination/views ' ));
82
+ $ view ->shouldReceive ('addNamespace ' )->once ()->with ('pagination ' , realpath (__DIR__ .'/../../src/Illuminate/Pagination ' ).'/views ' );
84
83
85
84
return new Environment ($ request , $ view , $ trans );
86
85
}
You can’t perform that action at this time.
0 commit comments