Bolt\Tests\Asset\AssetsProviderTest::testAddJquery PHP Метод

testAddJquery() публичный Метод

public testAddJquery ( )
    public function testAddJquery()
    {
        $app = $this->makeApp();
        $app->initialize();
        $app = $this->getApp();
        $app['config']->set('general/add_jquery', true);
        $response = new Response($this->template);
        $app['asset.queue.snippet']->process($this->getRequest(), $response);
        $this->assertContains('js/jquery', $response->getContent());
        $app['config']->set('general/add_jquery', false);
        $response = new Response($this->template);
        $app['asset.queue.snippet']->process($this->getRequest(), $response);
        $this->assertNotContains('js/jquery', $response->getContent());
    }