Refix unit testing for Laravel

Signed-off-by: crynobone <crynobone@gmail.com>
This commit is contained in:
crynobone
2012-08-01 06:34:44 +08:00
parent 08fce4fbf8
commit d816eb9ef3
10 changed files with 209 additions and 80 deletions

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', '');
}