Example #1
0
 public function __construct($name = null, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->urlGenerator = self::$app->getContainer()->get('rewriting.urlgenerator');
 }
 /**
  * Test constructor.
  *
  * @param string    $name
  * @param array     $data
  * @param string    $dataName
  */
 public function __construct($name = null, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->repository = self::$em->getRepository('BackBee\\NestedNode\\Page');
 }
 public function __construct($name = null, array $data = array(), $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->controller = new MockAbstractRestImplController();
     $this->controller->setContainer(self::$app->getContainer());
 }