for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the jquery-datatables-bundle package.
*
* (c) 2022 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\JQuery\DataTablesBundle\Tests\Traits\Arrays;
use WBW\Bundle\JQuery\DataTablesBundle\Tests\AbstractTestCase;
use WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Traits\Arrays\TestArrayEntitiesTrait;
/**
* Array entities trait test.
* @author webeweb <https://github.com/webeweb>
* @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Traits\Arrays
class ArrayEntitiesTraitTest extends AbstractTestCase {
* Tests setEntities()
* @return void
public function testSetEntities(): void {
$obj = new TestArrayEntitiesTrait();
$obj->setEntities([]);
$this->assertEquals([], $obj->getEntities());
}