Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atsanna committed Mar 15, 2024
1 parent ebf1d20 commit fc122f1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 10 additions & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions tests/Settings/ColumnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ protected function setUp(): void
parent::setUp();

$config['name'] = 'name';
$config['searchable'] = 'true';
$config['visible'] = 'true';
$config['searchable'] = true;
$config['visible'] = true;
$config['title'] = 'title';

$this->column = new Column($config);
$this->column = new Column($config);
}

public function testSetSearchable(): void
{
$this->assertSame('false', $this->column->getSearchable());
$this->assertSame('true', $this->column->getSearchable());

$this->column->setSearchable(true);
$this->assertSame('true', $this->column->getSearchable());
Expand All @@ -37,15 +37,15 @@ public function testSetSearchable(): void

public function testSetName(): void
{
$this->assertSame('', $this->column->getName());
$this->assertSame('name', $this->column->getName());

$this->column->setName('Test');
$this->assertSame('Test', $this->column->getName());
}

public function testSetTitle(): void
{
$this->assertSame('', $this->column->getTitle());
$this->assertSame('title', $this->column->getTitle());

$this->column->setTitle('Test');
$this->assertSame('Test', $this->column->getTitle());
Expand Down

0 comments on commit fc122f1

Please sign in to comment.