Support the ongoing development of →

629 Threads

5 Mar, 2014 at 09:17

Mocking $this in PHPSpec

I am trying to create a test suite using PHPSpec. Some things are working out, some things aren't. T...

0 Likes 1 Replies
9 Mar, 2014 at 07:03

[Controller testing] Problem with a view expecting some information from the controller

Hello everyone, I’m trying to start testing my controllers. I have a pretty basic controller which r...

0 Likes 0 Replies

Application performance monitor and test options

Hi, I just saw that New Relic is now supporting Laravel for Application performance and monitoring....

0 Likes 0 Replies
6 Mar, 2014 at 03:43

Cannot access model properties with mockery

Hi, I have some trouble accessing an eloquent model property when the model is mocked for unit test...

0 Likes 0 Replies

How can I test that a route has a filter set?

If had the following call in my test: $response = $this->call('GET', 'user/profile'); how can I...

0 Likes 0 Replies
6 Mar, 2014 at 03:16

Testing a controller fails because of view

Hi I'm trying to test a simple blog post controller that gets data by using the repository pattern (...

0 Likes 0 Replies

Mocking Model Binding

I'm new to writing test cases and I'm writing a test to see if the edit resource page is shown corre...

0 Likes 0 Replies

Mocks and namespace

Hi I had a few tests, no problem with phpunit execution. I added namespaces to my Models and control...

0 Likes 2 Replies

What's the best way to troubleshoot a controller problem?

In my controller I'm trying to delete a record from a table and the only message I get back to the c...

0 Likes 2 Replies

Thanks to our community

Solutions given in the past year.


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2021 - All rights reserved.