Browse Source

added another routing test.

Taylor Otwell 13 years ago
parent
commit
e7d3929a5f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/cases/laravel/routing.test.php

+ 2 - 1
tests/cases/laravel/routing.test.php

@@ -21,10 +21,11 @@ class RoutingTest extends PHPUnit_Framework_TestCase {
 	public function testBasicRouteCanBeRouted()
 	public function testBasicRouteCanBeRouted()
 	{
 	{
 		Router::register('GET /', function() {});
 		Router::register('GET /', function() {});
-		Router::register('GET /home', function() {});
+		Router::register(array('GET /home', 'GET /main'), function() {});
 
 
 		$this->assertEquals('GET /', Router::route('GET', '/')->key);
 		$this->assertEquals('GET /', Router::route('GET', '/')->key);
 		$this->assertEquals('GET /home', Router::route('GET', '/home')->key);
 		$this->assertEquals('GET /home', Router::route('GET', '/home')->key);
+		$this->assertEquals('GET /main', Router::route('GET', '/main')->key);
 	}
 	}
 
 
 	/**
 	/**