Out of the box: FAILURES! Tests: 1, Assertions: 1, Failures: 1.

Hi; phpunit tests/Feature/ExampleTest.php PHPUnit 7.4.1 by Sebastian Bergmann and contributors. F...
00

A general (long) question on TDD and test organization

So lets say we have a resource called 'Organization'. The application has 3 basic roles: admin, manager, staff. The roles are not really important,...
02

Regenerating Cart from a Cookie

Hey, I keep circling back to testing Cookies. I haven't had to use them since I started using TDD, and I feel like I'm missing something. Ri...
02

sqLite "no such table" Error In Unit Tests With Migrations

I have set up unit tests in Laravel 5.1 using sqLite ion-memory databases. I am getting the following error when running my tests: P...
05

Testing delete method in phpunit, "Expected status code 200 but received 419."

Hi everyone, I want to test the delete method but I am not getting the expected results from PHPUnit. I receive this message when running the test:...
08

[PROBLEM] Laravel Route doesn't work with domain

I'm new with Laravel and I try tu put my project on a private server. If I access with IP it works all the routes, but if I access from a domain th...
02

I got csrf error with http-tests

Hello, In my laravel 5.7.3 application I do automatic tests as written here...
03

Testing a random field

I have a registration form which prompts the user to enter either their day, month or year of birth. The choice of day/month/year is randomly decid...
05

After application development how to start testing.

I am little bit confused from where I need to start....
03

Phpunit testing form validation

I'm trying to write some tests for my forms in order to confirm the validators retrieve the expected errors when required. The form only has 3 fiel...
04

PHP-VCR

Hi, We have just been discussing mocking calls to external APIs. One way of doing this, is using php-vcr (...
01

TDD Cookies

Hi, never had a use for a cookie before, but I never really work on shopping sites. Right now, I have a specialized cart for a series of products t...
02

Writing route tests with proper feedback

Hey Guys! I've added simple route tests to my code to ensure that routes on my site are properly secured. All the route tests do is check to...
03

How to get localStorage working in vue testing

I am trying to test vue components. I have a vue single file component which uses vuex. My states are stored in store.js...
00

Create just one related model for feature test

If I am writing a test that contains both a user model and a post model each has an associated Model Factory. I know I can do the following to cr...
03

material for codeception

Are there any good codeception materials with yii2 ? I didnot understand codeception documentation so much . Thanks for your suggestions....
01

Factory doesn't fill attributes while testing

Hello there, I'm facing a weirdo problem , I've created a factory for a sale which looks like this. $factory->define(Sale::class,...
06

Token Mismatch exception

Hello guys, I am currently going through the TDD forums series and have this error which is stopping my tests from executing correctly...
02

Struggling to find error in test

Hi I am getting an error 500 on a test I am running and am struggling to find what I have dome wrong. Below is my test and controller method and ro...
05

Seeding database with 500 users and each user with random number of posts

I now how to seed 500 users. Now i'm trying to get them a random number of post from 2 to 15 per user. So I created a factory for the Posts:...
03