Skip to content

Commit

Permalink
Merge pull request laravel#16 from mayoz/patch-1
Browse files Browse the repository at this point in the history
Change test domain name.
  • Loading branch information
taylorotwell committed Apr 15, 2015
2 parents 47449dc + 5b92430 commit 78f2e01
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/FullApplicationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function testNamespacedControllerResponse()
public function testGeneratingUrls()
{
$app = new Application;
$app->instance('request', Request::create('http://lumen.com', 'GET'));
$app->instance('request', Request::create('http://lumen.laravel.com', 'GET'));
unset($app->availableBindings['request']);

$app->get('/foo-bar', ['as' => 'foo', function() {
Expand All @@ -170,16 +170,16 @@ public function testGeneratingUrls()
//
}]);

$this->assertEquals('http://lumen.com/something', url('something'));
$this->assertEquals('http://lumen.com/foo-bar', route('foo'));
$this->assertEquals('http://lumen.com/foo-bar/1/2', route('bar', ['baz' => 1, 'boom' => 2]));
$this->assertEquals('http://lumen.laravel.com/something', url('something'));
$this->assertEquals('http://lumen.laravel.com/foo-bar', route('foo'));
$this->assertEquals('http://lumen.laravel.com/foo-bar/1/2', route('bar', ['baz' => 1, 'boom' => 2]));
}


public function testGeneratingUrlsForRegexParameters()
{
$app = new Application;
$app->instance('request', Request::create('http://lumen.com', 'GET'));
$app->instance('request', Request::create('http://lumen.laravel.com', 'GET'));
unset($app->availableBindings['request']);

$app->get('/foo-bar', ['as' => 'foo', function() {
Expand All @@ -194,10 +194,10 @@ public function testGeneratingUrlsForRegexParameters()
//
}]);

$this->assertEquals('http://lumen.com/something', url('something'));
$this->assertEquals('http://lumen.com/foo-bar', route('foo'));
$this->assertEquals('http://lumen.com/foo-bar/1/2', route('bar', ['baz' => 1, 'boom' => 2]));
$this->assertEquals('http://lumen.com/foo-bar/1/2', route('baz', ['baz' => 1, 'boom' => 2]));
$this->assertEquals('http://lumen.laravel.com/something', url('something'));
$this->assertEquals('http://lumen.laravel.com/foo-bar', route('foo'));
$this->assertEquals('http://lumen.laravel.com/foo-bar/1/2', route('bar', ['baz' => 1, 'boom' => 2]));
$this->assertEquals('http://lumen.laravel.com/foo-bar/1/2', route('baz', ['baz' => 1, 'boom' => 2]));
}
}

Expand Down

0 comments on commit 78f2e01

Please sign in to comment.