From 04c3c7908cfcff81bb2714632b70ece785210cb7 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sun, 5 Jan 2020 18:21:24 +0800 Subject: [PATCH] fix test --- tests/HttpTest/ViewTest/ComposersTest/FootComposerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/HttpTest/ViewTest/ComposersTest/FootComposerTest.php b/tests/HttpTest/ViewTest/ComposersTest/FootComposerTest.php index 23e2612a..d4a708fd 100644 --- a/tests/HttpTest/ViewTest/ComposersTest/FootComposerTest.php +++ b/tests/HttpTest/ViewTest/ComposersTest/FootComposerTest.php @@ -28,11 +28,11 @@ class FootComposerTest extends TestCase $this->mock(JavaScript::class, function ($mock) { $mock->shouldReceive('generate') ->with('en') - ->twice() + ->once() ->andReturn('en.js'); $mock->shouldReceive('plugin') ->with('en') - ->twice() + ->once() ->andReturn('en_plugin.js'); }); $this->mock(Webpack::class, function ($mock) { @@ -44,7 +44,7 @@ class FootComposerTest extends TestCase ->andReturn('style.js'); $mock->shouldReceive('url') ->with('app.js') - ->twice() + ->once() ->andReturn('app.js'); });