mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 19:18:56 -05:00 
			
		
		
		
	* Tests for authentication * Add db field to company table (required if we are doing jobs without an auth()->user() ) * Add Laravel Dusk for browser testing, add ability to set DB by incoming URL Hash
		
			
				
	
	
		
			42 lines
		
	
	
		
			628 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			628 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Tests\Browser\Pages;
 | 
						|
 | 
						|
use Laravel\Dusk\Browser;
 | 
						|
 | 
						|
class HomePage extends Page
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * Get the URL for the page.
 | 
						|
     *
 | 
						|
     * @return string
 | 
						|
     */
 | 
						|
    public function url()
 | 
						|
    {
 | 
						|
        return '/';
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Assert that the browser is on the page.
 | 
						|
     *
 | 
						|
     * @param  Browser  $browser
 | 
						|
     * @return void
 | 
						|
     */
 | 
						|
    public function assert(Browser $browser)
 | 
						|
    {
 | 
						|
        //
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Get the element shortcuts for the page.
 | 
						|
     *
 | 
						|
     * @return array
 | 
						|
     */
 | 
						|
    public function elements()
 | 
						|
    {
 | 
						|
        return [
 | 
						|
            '@element' => '#selector',
 | 
						|
        ];
 | 
						|
    }
 | 
						|
}
 |