Tests/Services/DocumentServiceTest.php
changeset 57 186c4121c7b3
child 63 774ba82dca59
equal deleted inserted replaced
49:e854d8cb376c 57:186c4121c7b3
       
     1 <?php
       
     2 /*
       
     3  * This file is part of the WikiTagBundle package.
       
     4  *
       
     5  * (c) IRI <http://www.iri.centrepompidou.fr/>
       
     6  *
       
     7  * For the full copyright and license information, please view the LICENSE
       
     8  * file that was distributed with this source code.
       
     9  */
       
    10 
       
    11 namespace IRI\Bundle\WikiTagBundle\Tests\Services;
       
    12 
       
    13 require_once(__DIR__ . "/../../../../../../../app/AppKernel.php");
       
    14 
       
    15 class DocumentServiceTest extends \PHPUnit_Framework_TestCase
       
    16 {
       
    17 
       
    18     protected $_container;
       
    19     
       
    20     public function __construct()
       
    21     {
       
    22         $kernel = new \AppKernel("test", true);
       
    23         $kernel->boot();
       
    24         $this->_container = $kernel->getContainer();
       
    25         parent::__construct();
       
    26     }
       
    27     
       
    28     protected function get($service)
       
    29     {
       
    30         return $this->_container->get($service);
       
    31     }
       
    32     
       
    33         
       
    34     public function testCopyTags()
       
    35     {
       
    36     
       
    37         $search_service = $this->get("wiki_tag.document");
       
    38         
       
    39         // TODO : get doc 1
       
    40         // TODO : get doc 2
       
    41         // call copyTags
       
    42     
       
    43     }
       
    44     
       
    45     
       
    46 }
       
    47