Service Worker testing

I'm been playing around with service workers and want to write a test to see if they are functioning. I was planning on using Dusk. How can...
00

PHPUnit error

I'm trying to resolve this error I get when using the alias for PHPUnit. I have PHPUnit installed globally and am using Valet. If I run ./v...
00

Laravel 5.4, Maximum function nesting level of '256' reached

I have a SiteAdmin class that extends User model and i am trying to tests SiteAdmin::create() method and it doesn't work an error is thrown...
02

Permission Testing

I'm trying to figure out why the users_cannot_view_the_add_stipulation_form test passes however the first test does not pass. The reason for it not...
00

dusk WebDriverException on Homestead

Hi all, Have any of you had problems trying to run the dusk example test from a homestead? I tried but got the error bellow, I've been looki...
04

PHPUnit: User's permissions doesn't work

Hi guys, In my testAdminLoginSuccess method I'm trying to test whether a newly factory-generated user with attached Role has a permission (w...
07

Roles and Permissions with PHPUnit

Hi, I am trying to work out how I can extend the tutorial at...
01

Lumen: using "seeJson()" reports "This test did not perform any assertions"

Hey all, I'm testing an API with the test infrastructure provided by lumen. The test is basically something like: $this->j...
00

Testing JSON APIs, specifically: assertJsonStructure

Per the Laravel 5.4 documentation: $response->assertJsonStructure(array $structure); ...should "assert that...
03

SignIn a user for Unit test on laravel 5.4

How do you signIn a user in unit test on Laravel 5.4? I tried actingAs but didn't work :( Thanks Mohammed...
04

How to assert that something exists in local/session storage using Dusk?

I set some data in session storage for my app. I want to know how to test and check that data using laravel dusk. I can trigger js no proble...
00

Prevent event listeners when using model factories.

Hey all, I'm trying to rerun previously successfully PHPUnit tests after adding a bunch of Listeners and I'm running into a wall. I have lis...
05

Testing Custom Artisan Command

Hello, I am working on a new Artisan command which help me(or you) to generate a new Vue component with boilerplate. Now the command works w...
02

Changing default disk for testing.

I'm trying to build a test for images handling in my application. For the database testing I'm using DatabaseMigrations, so the test persists recor...
01

Error while testing file uploads

So i am trying to add a profile image feature in my app. I am using the TDD approach to do this. Below is the relevant code: Controller...
04

Mystery with phpunit

Hi everyone, I'm currently following the Create forum with TDD series, and everything was working fine, I reached the end of lesson 17 and suddenly...
00

PHPUNIT testing

how can i use phpunit command in windows command prompt?? please guide me...
00

How to test file download using maatwebsite/excel

I am using maatwebsite/excel to return an excel file. This works fine but I want to be able to test this using phpunit. I have a controller...
00

HTML Returned instead of JSON

I've written a test to check the output of an API I'm writing (I've added a dd() call to see what the test is getting returned). The BookController...
02

How to assert that the database contains a value stored as JSON

Within my PHPUnit test I'm trying to assert that an API endpoint properly stores the data sent to it. In my database I have a field called se...
00