1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of the jquery-datatables-bundle package. |
5
|
|
|
* |
6
|
|
|
* (c) 2022 WEBEWEB |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace WBW\Bundle\JQuery\DataTablesBundle\Tests\Renderer; |
13
|
|
|
|
14
|
|
|
use WBW\Bundle\JQuery\DataTablesBundle\Renderer\ColumnWidthInterface; |
15
|
|
|
use WBW\Bundle\JQuery\DataTablesBundle\Tests\AbstractTestCase; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* Column width interface test. |
19
|
|
|
* |
20
|
|
|
* @author webeweb <https://github.com/webeweb> |
21
|
|
|
* @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Renderer |
22
|
|
|
*/ |
23
|
|
|
class ColumnWidthInterfaceTest extends AbstractTestCase { |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* Test __construct() |
27
|
|
|
* |
28
|
|
|
* @return void |
29
|
|
|
*/ |
30
|
|
|
public function test__construct(): void { |
31
|
|
|
|
32
|
|
|
$this->assertEquals("20px", ColumnWidthInterface::COLUMN_WIDTH_XXS); |
33
|
|
|
$this->assertEquals("40px", ColumnWidthInterface::COLUMN_WIDTH_XS); |
34
|
|
|
$this->assertEquals("80px", ColumnWidthInterface::COLUMN_WIDTH_S); |
35
|
|
|
$this->assertEquals("120px", ColumnWidthInterface::COLUMN_WIDTH_M); |
36
|
|
|
$this->assertEquals("160px", ColumnWidthInterface::COLUMN_WIDTH_L); |
37
|
|
|
$this->assertEquals("200px", ColumnWidthInterface::COLUMN_WIDTH_XL); |
38
|
|
|
$this->assertEquals("240px", ColumnWidthInterface::COLUMN_WIDTH_XXL); |
39
|
|
|
$this->assertEquals("280px", ColumnWidthInterface::COLUMN_WIDTH_XXXL); |
40
|
|
|
|
41
|
|
|
$this->assertEquals(ColumnWidthInterface::COLUMN_WIDTH_L, ColumnWidthInterface::COLUMN_WIDTH_ACTIONS); |
42
|
|
|
$this->assertEquals(ColumnWidthInterface::COLUMN_WIDTH_M, ColumnWidthInterface::COLUMN_WIDTH_DATE); |
43
|
|
|
$this->assertEquals(ColumnWidthInterface::COLUMN_WIDTH_XXS, ColumnWidthInterface::COLUMN_WIDTH_ICON); |
44
|
|
|
$this->assertEquals(ColumnWidthInterface::COLUMN_WIDTH_L, ColumnWidthInterface::COLUMN_WIDTH_LABEL); |
45
|
|
|
$this->assertEquals(ColumnWidthInterface::COLUMN_WIDTH_S, ColumnWidthInterface::COLUMN_WIDTH_THUMBNAIL); |
46
|
|
|
$this->assertEquals(ColumnWidthInterface::COLUMN_WIDTH_XS, ColumnWidthInterface::COLUMN_WIDTH_UNIT); |
47
|
|
|
} |
48
|
|
|
} |
49
|
|
|
|