Skip to content

Commit 547cee7

Browse files
authored
Add ConfigurableAreaConfigurationTest
1 parent 15e18fb commit 547cee7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Rappasoft\LaravelLivewireTables\Tests\Unit\Traits\Configuration;
4+
5+
use Rappasoft\LaravelLivewireTables\Tests\TestCase;
6+
7+
final class ConfigurableAreaConfigurationTest extends TestCase
8+
{
9+
public function test_can_set_configurable_area(): void
10+
{
11+
$this->assertNull($this->basicTable->getConfigurableAreaFor('before-tools'));
12+
13+
$this->basicTable->setConfigurableArea('before-tools', 'path.to.my.view');
14+
15+
$this->assertSame('path.to.my.view',$this->basicTable->getConfigurableAreaFor('before-tools'));
16+
}
17+
}

0 commit comments

Comments
 (0)