Tests/Services/DocumentServiceTest.php
changeset 57 186c4121c7b3
child 63 774ba82dca59
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Tests/Services/DocumentServiceTest.php	Tue Dec 06 14:53:12 2011 +0100
@@ -0,0 +1,47 @@
+<?php
+/*
+ * This file is part of the WikiTagBundle package.
+ *
+ * (c) IRI <http://www.iri.centrepompidou.fr/>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace IRI\Bundle\WikiTagBundle\Tests\Services;
+
+require_once(__DIR__ . "/../../../../../../../app/AppKernel.php");
+
+class DocumentServiceTest extends \PHPUnit_Framework_TestCase
+{
+
+    protected $_container;
+    
+    public function __construct()
+    {
+        $kernel = new \AppKernel("test", true);
+        $kernel->boot();
+        $this->_container = $kernel->getContainer();
+        parent::__construct();
+    }
+    
+    protected function get($service)
+    {
+        return $this->_container->get($service);
+    }
+    
+        
+    public function testCopyTags()
+    {
+    
+        $search_service = $this->get("wiki_tag.document");
+        
+        // TODO : get doc 1
+        // TODO : get doc 2
+        // call copyTags
+    
+    }
+    
+    
+}
+