diff --git a/tests/Buttons/ButtonsFacebookTest.php b/tests/Buttons/ButtonsFacebookTest.php index 006d406..05aa914 100644 --- a/tests/Buttons/ButtonsFacebookTest.php +++ b/tests/Buttons/ButtonsFacebookTest.php @@ -7,17 +7,17 @@ class ButtonsFacebookTest extends PHPUnit_Framework_TestCase { public function setUp() { - $this->environment = m::mock('Illuminate\View\Environment'); + $this->view = m::mock('Illuminate\View\Factory'); } - - public function tearDown() - { - m::close(); - } - + + public function tearDown() + { + m::close(); + } + public function testRenderExists() { - $facebook = new Facebook($this->environment); + $facebook = new Facebook($this->view); $this->assertTrue(method_exists($facebook, 'render'), 'Class does not have method render'); } -} \ No newline at end of file +} diff --git a/tests/Buttons/ButtonsGooglePlusTest.php b/tests/Buttons/ButtonsGooglePlusTest.php index e5c2a69..ebf9f24 100644 --- a/tests/Buttons/ButtonsGooglePlusTest.php +++ b/tests/Buttons/ButtonsGooglePlusTest.php @@ -7,17 +7,17 @@ class ButtonsGooglePlusTest extends PHPUnit_Framework_TestCase { public function setUp() { - $this->environment = m::mock('Illuminate\View\Environment'); + $this->view = m::mock('Illuminate\View\Factory'); } - - public function tearDown() - { - m::close(); - } - + + public function tearDown() + { + m::close(); + } + public function testRenderExists() { - $googlePlus = new GooglePlus($this->environment); + $googlePlus = new GooglePlus($this->view); $this->assertTrue(method_exists($googlePlus, 'render'), 'Class does not have method render'); } -} \ No newline at end of file +} diff --git a/tests/Buttons/ButtonsTwitterTest.php b/tests/Buttons/ButtonsTwitterTest.php index 4fc2911..09d28ae 100644 --- a/tests/Buttons/ButtonsTwitterTest.php +++ b/tests/Buttons/ButtonsTwitterTest.php @@ -7,17 +7,17 @@ class ButtonsTwitterTest extends PHPUnit_Framework_TestCase { public function setUp() { - $this->environment = m::mock('Illuminate\View\Environment'); + $this->view = m::mock('Illuminate\View\Factory'); } - - public function tearDown() - { - m::close(); - } - + + public function tearDown() + { + m::close(); + } + public function testRenderExists() { - $twitter = new Twitter($this->environment); + $twitter = new Twitter($this->view); $this->assertTrue(method_exists($twitter, 'render'), 'Class does not have method render'); } -} \ No newline at end of file +}