Refix unit testing for Laravel

Signed-off-by: crynobone <[email protected]>
This commit is contained in:
crynobone
2012-08-01 13:05:59 +08:00
parent 08fce4fbf8
commit d816eb9ef3
10 changed files with 209 additions and 80 deletions
+2 -4
View File
@@ -147,10 +147,8 @@ class BundleTest extends PHPUnit_Framework_TestCase {
*/
public function testAssetPathReturnsPathToBundlesAssets()
{
Config::set('application.url', 'http://localhost');
$this->assertEquals('http://localhost/bundles/dashboard/', Bundle::assets('dashboard'));
$this->assertEquals('http://localhost/', Bundle::assets(DEFAULT_BUNDLE));
$this->assertEquals('/bundles/dashboard/', Bundle::assets('dashboard'));
$this->assertEquals('/', Bundle::assets(DEFAULT_BUNDLE));
Config::set('application.url', '');
}