Put MobileApplication.php
in /tests
.
Then in the Dusk test you want to test for mobile add the following line:
use MobileApplciation;
If you would like to change the default mobile device, the set a private property on your test:
private $device = 'Apple iPad Mini';
The test will run in a mobile emulator!