예제 #1
0
 public function setUp()
 {
     parent::setUp();
     $this->input = $this->loadFixture('Test\\Fixtures\\UserInput\\UserNoPostsInput', 'Presentation\\Models\\Input\\User');
     $this->repo = $this->getMock('Domain\\Repositories\\UserRepository');
     $this->input->setRepository($this->repo);
 }
 public function setUp()
 {
     parent::setUp();
     $this->factory = new ConfigurationFactory();
     $this->devConfig = $this->factory->buildDevConfig();
     $this->prodConfig = $this->factory->buildProdConfig();
 }
 public function setUp()
 {
     parent::setUp();
     $this->manager = EntityManagerFactory::getNewManager();
     $this->createSchema($this->manager);
     $this->repo = $this->getRepo();
 }
 public function setUp()
 {
     parent::setUp();
     $this->user = $this->loadFixture('Test\\Fixtures\\User\\UserNoPosts', 'Domain\\Entities\\User');
     $this->repo = $this->getMock('Domain\\Repositories\\UserRepository');
     $this->hasher = $this->getMock('Domain\\PasswordHasher');
     $this->authenticator = new UserAuthenticator($this->repo, $this->hasher);
 }
 public function setUp()
 {
     parent::setUp();
     $this->slim = $this->getMockSlim();
     //stub slim object
     $this->request = $this->getMockRequest();
     $this->request->expects($this->any())->method('getPath')->will($this->returnValue('/admin'));
     $this->slim->expects($this->any())->method('request')->will($this->returnValue($this->request));
     $this->userRepo = $this->getMock('Domain\\Repositories\\UserRepository');
     $this->userAuth = $this->getMockAuthenticator();
     $this->user = $this->loadFixture('Test\\Fixtures\\User\\UserNoPosts', 'Domain\\Entities\\User');
     $this->service = new SlimAuthenticationService($this->slim, $this->userRepo, $this->userAuth);
     $this->service->addRoute('admin');
 }
예제 #6
0
 public function setUp()
 {
     parent::setUp();
     $this->uow = new UnitOfWork();
     $this->uow->begin();
 }
예제 #7
0
 public function setUp()
 {
     parent::setUp();
     $this->user = $this->loadFixture('Test\\Fixtures\\User\\UserNoPosts', 'Domain\\Entities\\User');
 }
예제 #8
0
 public function setUp()
 {
     parent::setUp();
     $this->post = $this->loadFixture('Test\\Fixtures\\Post\\PostNoUserAndNoComments', 'Domain\\Entities\\Post');
 }
예제 #9
0
 public function setUp()
 {
     parent::setUp();
     $this->comment = $this->loadFixture('Test\\Fixtures\\Comment\\CommentNoPost', 'Domain\\Entities\\Comment');
 }
 public function setUp()
 {
     parent::setUp();
     $this->comment = $this->loadFixture('Test\\Fixtures\\Comment\\CommentWithHtml', 'Domain\\Entities\\Comment');
     $this->sanitizer = new CommentSanitizer($this->comment);
 }
 public function setUp()
 {
     parent::setUp();
     $this->manager = EntityManagerFactory::getNewManager();
 }