mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-11-03 02:13:16 +03:00 
			
		
		
		
	- Updated locale list - Fixed new name sorting not being case insensitive - Updated license test to account for changed deps
		
			
				
	
	
		
			27 lines
		
	
	
		
			724 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			724 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace Tests\Meta;
 | 
						|
 | 
						|
use Tests\TestCase;
 | 
						|
 | 
						|
class LicensesTest extends TestCase
 | 
						|
{
 | 
						|
    public function test_licenses_endpoint()
 | 
						|
    {
 | 
						|
        $resp = $this->get('/licenses');
 | 
						|
        $resp->assertOk();
 | 
						|
        $resp->assertSee('Licenses');
 | 
						|
        $resp->assertSee('PHP Library Licenses');
 | 
						|
        $resp->assertSee('Dan Brown and the BookStack project contributors');
 | 
						|
        $resp->assertSee('league/commonmark');
 | 
						|
        $resp->assertSee('@codemirror/lang-html');
 | 
						|
    }
 | 
						|
 | 
						|
    public function test_licenses_linked_to_from_settings()
 | 
						|
    {
 | 
						|
        $resp = $this->asAdmin()->get('/settings/features');
 | 
						|
        $html = $this->withHtml($resp);
 | 
						|
        $html->assertLinkExists(url('/licenses'), 'License Details');
 | 
						|
    }
 | 
						|
}
 |