Inheritance: extends PHPUnit_Framework_TestCase, use trait Illuminate\Foundation\Testing\ApplicationTrait
 public function setUp()
 {
     parent::setUp();
     \App::bind("App\\Repositories\\RecipeRepositoryInterface", "App\\Tests\\StubRepositories\\RecipeRepository");
     \App::bind("App\\Presenter\\FeedInterface", "App\\Presenter\\Feed");
     $this->controller = new FeedController(\App::make("App\\Presenter\\FeedInterface"), \App::make("App\\Repositories\\RecipeRepositoryInterface"));
 }
Ejemplo n.º 2
0
 public function createApplication()
 {
     $app = parent::createApplication();
     //we must do this to test the routes or they will fail
     config()->set('user.allow_registration', true);
     return $app;
 }
 public function setUp()
 {
     parent::setUp();
     \App::bind("App\\Repositories\\SectionRepositoryInterface", "App\\Tests\\StubRepositories\\SectionRepository");
     \App::bind("App\\Repositories\\CategoryRepositoryInterface", "App\\Tests\\StubRepositories\\CategoryRepository");
     \App::bind("App\\Repositories\\RecipeRepositoryInterface", "App\\Tests\\StubRepositories\\RecipeRepository");
     $this->controller = new RecipeController(\App::make("App\\Repositories\\SectionRepositoryInterface"), \App::make("App\\Repositories\\CategoryRepositoryInterface"), \App::make("App\\Repositories\\RecipeRepositoryInterface"), new Hal());
 }
 public function setUp()
 {
     parent::setUp();
     \App::bind("App\\Authenticate\\AuthenticateInterface", "App\\Tests\\StubRepositories\\AuthenticateRepository");
     $this->controller = new AuthenticateController(\App::make("App\\Authenticate\\AuthenticateInterface"));
 }
 public function setUp()
 {
     parent::setUp();
     $this->fluent = new FluentTest();
 }
 public function get($uri, array $headers = [])
 {
     return parent::get('api/v1/' . $uri, $headers);
 }
Ejemplo n.º 7
0
 public function setUp()
 {
     parent::setUp();
     $this->feed = new Feed(new ZendFeed());
 }
Ejemplo n.º 8
0
 public function setUp()
 {
     parent::setUp();
     $this->response = new Response();
 }
Ejemplo n.º 9
0
 public function setUp()
 {
     parent::setUp();
     $this->validate = new Validate();
 }
 public function setUp()
 {
     parent::setUp();
     \App::bind("App\\Repositories\\CategoryRepositoryInterface", "App\\Tests\\StubRepositories\\CategoryRepository");
     $this->compose = new CategoryComposer(\App::make("App\\Repositories\\CategoryRepositoryInterface"));
 }
 public function setUp()
 {
     parent::setUp();
     $this->app->bind("App\\Repositories\\AnalyticsRepositoryInterface", "App\\Tests\\StubRepositories\\AnalyticsRepository");
     $this->command = new CleanCommand(\App::make("App\\Repositories\\AnalyticsRepositoryInterface"));
 }
Ejemplo n.º 12
0
 public function setUp()
 {
     parent::setUp();
     \App::bind("App\\Repositories\\RecipeRepositoryInterface", "App\\Tests\\StubRepositories\\RecipeRepository");
     $this->markdown = new Markdown(new \Parsedown(), \App::make("App\\Repositories\\RecipeRepositoryInterface"));
 }
 public function setUp()
 {
     parent::setUp();
     $this->provider = new GithubUserProvider(new AclRepository(), new UserRepository());
 }
 public function setup()
 {
     $this->instance = $this->getMockForTrait(ValidationTrait::class);
     parent::setUp();
 }
Ejemplo n.º 15
0
 public function setUp()
 {
     parent::setUp();
     $this->auth = new GitHub(new Client());
 }
 public function setUp()
 {
     parent::setUp();
     $this->app->bind("App\\Repositories\\AclRepositoryInterface", "App\\Tests\\StubRepositories\\AclRepository");
     $this->command = new AddAccountCommand(\App::make("App\\Authenticate\\Driver\\GitHub", [\App::make("GuzzleHttp\\ClientInterface")]), \App::make("App\\Repositories\\AclRepositoryInterface"));
 }
 public function setUp()
 {
     parent::setUp();
     $this->compose = new FeederComposer(new Reader());
 }
 public function setUp()
 {
     parent::setUp();
     $this->repository = new AclRepository();
 }
 public function setUp()
 {
     parent::setUp();
     $this->controller = new BaseController();
 }
 public function setUp()
 {
     parent::setUp();
     $this->category = new CategoryRepository();
     $this->command = new AddRecipeCommand($this->category, new RecipeRepository(), new TagRepository(), new RecipeTagRepository());
 }
 public function setUp()
 {
     parent::setUp();
     $this->exception = new OAuthErrorException('error');
 }
 public function setUp()
 {
     parent::setUp();
     $this->filter = new PostOnceFilter();
 }
 public function setUp()
 {
     parent::setUp();
     $this->facade = new MarkdownFacade();
 }
Ejemplo n.º 24
0
 public function setUp()
 {
     parent::setUp();
     $this->hal = new Hal();
     $this->render = new HalRender($this->hal);
 }