An internal package used for Laravel package development...
Install the package with Composer:
composer require --dev goodm4ven/anvilI'm doing my best to make the helper classes "activatable" or injectable with ease. This is what we have, so far:
Inject this to a service provider's register method:
\GoodMaven\Anvil\Fixes\RegisterLaravelBoosterJsonSchemaFix::activate();- Inside your
TestCase.phpclass, use this trait:
use \GoodMaven\Anvil\Concerns\TestableWorkbench;- Inside the same class Testbench's
getEnvironmentSetUpmethod, call this method:
$this->setDatabaseTestingEssentials();In order to bypass the issue of assigning specific waiting time for input fields to update correctly, we have these 2 helper methods:
use GoodMaven\Anvil\Support\LivewireTester;
LivewireTester::waitForDomInputValue($page, $selector, $expectedValue);
LivewireTester::waitForRenderedInputValue($page, $selector, $expectedValue);This package was initiated based on my Laravel package template that is built on top of Spatie's. Make sure to read the docs for both.
- // TODO Unit testing all features
Support ongoing package maintenance as well as the development of other projects through sponsorship or one-time donations if you prefer.