1<?php 2 3/* 4 * This file is part of the FOSRestBundle package. 5 * 6 * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12namespace FOS\RestBundle\Tests\Functional; 13 14/** 15 * @author Ener-Getick <egetick@gmail.com> 16 */ 17class ConfigurationTest extends WebTestCase 18{ 19 public function testDisabledTemplating() 20 { 21 $kernel = self::bootKernel(['test_case' => 'Templating']); 22 $container = $kernel->getContainer(); 23 24 $this->assertFalse($container->has('fos_rest.templating')); 25 } 26 27 public function testToolbar() 28 { 29 $client = $this->createClient(['test_case' => 'Configuration']); 30 $client->request( 31 'GET', 32 '/_profiler/empty/search/results?limit=10', 33 [], 34 [], 35 ['HTTP_Accept' => 'application/json'] 36 ); 37 38 $this->assertSame('text/html; charset=UTF-8', $client->getResponse()->headers->get('Content-Type')); 39 } 40} 41