Posts Tagged "testing"

Instantiate Request for Testing

June 17th, 2022

When I need to make a request for a test in which the Class is expecting a \Illuminate\Http\Request I can do this for a file based or non file based...

Testing a trait with PHPUnit

June 17th, 2022

In an effort to start recording test coverage using vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover I had some issues with traits being...

Laravel, Dusk and Valet

June 17th, 2022

By default I set my phpunit.xml to use test as my database:

    <php>
        <env name="APP_ENV"...
            
Testing Laravel API, Spark with Authentication

June 17th, 2022

Just a reminder to self, if I want to test an API I made and need to pass and api_token

<?php

namespace Tests\Feature;

use...
            
Getting Started with Orchestra Testbench for Laravel Package Development

June 17th, 2022

The goal of this article will allow one to setup a stand alone package working with it's own tests and has access to all of the normal Laravel workflows outside of Laravel. ...