Code Duplication    Length = 13-13 lines in 2 locations

Tests/Asset/AsgardAssetManagerTest.php 2 locations

@@ 52-64 (lines=13) @@
49
    }
50
51
    /** @test */
52
    public function it_should_add_multiple_assets()
53
    {
54
        $this->assetManager->addAsset('main', '/path/to/main.css');
55
        $this->assetManager->addAsset('footer', '/path/to/footer.css');
56
        $this->assetManager->addAsset('jquery', '/path/to/jquery.js');
57
        $this->assetManager->addAsset('jquery_plugin', '/path/to/jquery_plugin.js');
58
59
        $cssResults = $this->assetManager->allCss();
60
        $jsResults = $this->assetManager->allJs();
61
62
        $this->assertEquals(2, $cssResults->count());
63
        $this->assertEquals(2, $jsResults->count());
64
    }
65
66
    /** @test */
67
    public function it_should_return_the_dependency_asked_for()
@@ 67-79 (lines=13) @@
64
    }
65
66
    /** @test */
67
    public function it_should_return_the_dependency_asked_for()
68
    {
69
        $this->assetManager->addAsset('main', '/path/to/main.css');
70
        $this->assetManager->addAsset('footer', '/path/to/footer.css');
71
        $this->assetManager->addAsset('jquery', '/path/to/jquery.js');
72
        $this->assetManager->addAsset('jquery_plugin', '/path/to/jquery_plugin.js');
73
74
        $jquery = $this->assetManager->getJs('jquery');
75
        $footer = $this->assetManager->getCss('footer');
76
77
        $this->assertEquals('/path/to/jquery.js', $jquery);
78
        $this->assertEquals('/path/to/footer.css', $footer);
79
    }
80
81
    /** @test */
82
    public function it_should_throw_an_exception_if_js_asset_not_found()