Support the ongoing development of Laravel.io →

535 Threads

posted 10 years ago

assertRedirectToRoute

I created a test for users.store and I wanted to test if I get redirected to users.index if everythi...

0 Likes
7 Replies

Does AspectMock change how we need to structure our code for testing?

I'm new to TDD, but I've been reading a lot and understanding that code should be extremely modular...

0 Likes
1 Replies

Codeception, Custom Validators and Ardent

Hi all, I have a problem. It seems that Codeception doesn't recognize the validator rules that I ins...

0 Likes
0 Replies
posted 10 years ago

Getting started with unit testing

I haven't really written any unit tests as it goes in the way with deadlines . Please don't get me w...

0 Likes
2 Replies
posted 10 years ago

How to mock App::make() on UnitTesting

Hello guys, i got a question when i was unit testing my application. I Have a method that require a...

0 Likes
1 Replies

How would you structure this application?

Hey everyone, just getting started and feeling a bit overwhelmed. Hoping someone can set me straight...

0 Likes
3 Replies

Laravel and phpmyadmin on shared host

Hi! I have succesfully upload my app on shared host, and everything is okay except problem with data...

0 Likes
1 Replies
posted 10 years ago

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
posted 10 years ago

[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
posted 10 years ago

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

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

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. Excluding solutions from thread authors.

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.