mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 09:19:08 +00:00 
			
		
		
		
	Implemented collection attribut for abstract source collection and tests
This commit is contained in:
		| @@ -0,0 +1,27 @@ | ||||
| <?php | ||||
|  | ||||
| namespace Tests\Unit\Entity\Source\Collection; | ||||
|  | ||||
| use PHPUnit\Framework\TestCase; | ||||
| use App\Entity\Source\Collection\CollectionSourceInterface; | ||||
| use App\Entity\Source\Collection\AbstractCollectionSource; | ||||
|  | ||||
| class AbstractCollectionSourceTest extends TestCase | ||||
| { | ||||
|     /** | ||||
|      * @var CollectionSourceInterface | ||||
|      */ | ||||
|     public $collectionSource; | ||||
|  | ||||
|     public function setUp(): void | ||||
|     { | ||||
|         $this->collectionSource = new class() extends AbstractCollectionSource { | ||||
|         }; | ||||
|     } | ||||
|  | ||||
|     public function testConstruct(): void | ||||
|     { | ||||
|         $this->expectException(\TypeError::class); | ||||
|         $this->collectionSource->getCollection(); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user