mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-11-03 18:58:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			716 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			716 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
namespace tests\unit\Entity\Source\Data;
 | 
						|
 | 
						|
use PHPUnit\Framework\TestCase;
 | 
						|
use App\Entity\Source\Data\UserSourceInterface;
 | 
						|
use App\Entity\Source\Data\UserSource;
 | 
						|
use Doctrine\Common\Collections\Collection;
 | 
						|
use App\Entity\Source\Data\NameSourceInterface;
 | 
						|
 | 
						|
class UserSourceTest extends TestCase
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * 
 | 
						|
     * @var UserSourceInterface
 | 
						|
     */
 | 
						|
    public $userSource;
 | 
						|
    
 | 
						|
    public function setUp():void{
 | 
						|
        $this->userSource = new UserSource();
 | 
						|
    }
 | 
						|
    
 | 
						|
    public function testConstructor():void {
 | 
						|
        $this->assertInstanceOf(Collection::class, $this->userSource->getMemberships());
 | 
						|
        $this->assertInstanceOf(NameSourceInterface::class, $this->userSource->getNameSource());
 | 
						|
    }
 | 
						|
}
 | 
						|
 |