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) 2019 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\Model;
use WBW\Bundle\JQuery\DataTablesBundle\Api\DataTablesWrapperInterface;
use WBW\Bundle\JQuery\DataTablesBundle\Tests\AbstractTestCase;
use WBW\Bundle\JQuery\DataTablesBundle\Tests\Fixtures\Model\TestDataTablesWrapperTrait;
/**
* DataTables wrapper trait test.
* @author webeweb <https://github.com/webeweb>
* @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Model
class DataTablesWrapperTraitTest extends AbstractTestCase {
* Test setWrapper()
* @return void
public function testSetWrapper(): void {
// Set a DataTables wrapper mock.
$wrapper = $this->getMockBuilder(DataTablesWrapperInterface::class)->getMock();
$obj = new TestDataTablesWrapperTrait();
$obj->setWrapper($wrapper);
$this->assertSame($wrapper, $obj->getWrapper());
}