diff --git a/tests/ForgeSdkTest.php b/tests/ForgeSdkTest.php index ea983a5..baed95c 100644 --- a/tests/ForgeSdkTest.php +++ b/tests/ForgeSdkTest.php @@ -1,8 +1,6 @@ shouldReceive('request')->once()->with('GET', 'recipes', [])->andReturn( $response = Mockery::mock('GuzzleHttp\Psr7\Response') @@ -26,7 +24,7 @@ public function test_making_basic_requests() public function test_handling_validation_errors() { - $forge = new \Laravel\Forge\Forge('123', $http = Mockery::mock('GuzzleHttp\Client')); + $forge = new \Themsaid\Forge\Forge('123', $http = Mockery::mock('GuzzleHttp\Client')); $http->shouldReceive('request')->once()->with('GET', 'recipes', [])->andReturn( $response = Mockery::mock('GuzzleHttp\Psr7\Response') @@ -37,7 +35,7 @@ public function test_handling_validation_errors() try { $forge->recipes(); - } catch (\Laravel\Forge\Exceptions\ValidationException $e) { + } catch (\Themsaid\Forge\Exceptions\ValidationException $e) { } $this->assertEquals(['name' => ['The name is required.']], $e->errors()); @@ -45,9 +43,9 @@ public function test_handling_validation_errors() public function test_handling_404_errors() { - $this->expectException(\Laravel\Forge\Exceptions\NotFoundException::class); + $this->expectException(\Themsaid\Forge\Exceptions\NotFoundException::class); - $forge = new \Laravel\Forge\Forge('123', $http = Mockery::mock('GuzzleHttp\Client')); + $forge = new \Themsaid\Forge\Forge('123', $http = Mockery::mock('GuzzleHttp\Client')); $http->shouldReceive('request')->once()->with('GET', 'recipes', [])->andReturn( $response = Mockery::mock('GuzzleHttp\Psr7\Response') @@ -60,7 +58,7 @@ public function test_handling_404_errors() public function test_handling_failed_action_errors() { - $forge = new \Laravel\Forge\Forge('123', $http = Mockery::mock('GuzzleHttp\Client')); + $forge = new \Themsaid\Forge\Forge('123', $http = Mockery::mock('GuzzleHttp\Client')); $http->shouldReceive('request')->once()->with('GET', 'recipes', [])->andReturn( $response = Mockery::mock('GuzzleHttp\Psr7\Response') @@ -71,7 +69,7 @@ public function test_handling_failed_action_errors() try { $forge->recipes(); - } catch (\Laravel\Forge\Exceptions\FailedActionException $e) { + } catch (\Themsaid\Forge\Exceptions\FailedActionException $e) { } $this->assertEquals('Error!', $e->getMessage());