-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: thangnn <[email protected]>
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
plugins/bc-widget-area/tests/TestCase/Model/Entity/WidgetAreaTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
namespace BcWidgetArea\Test\TestCase\Model\Entity; | ||
|
||
use BaserCore\TestSuite\BcTestCase; | ||
use BcWidgetArea\Model\Entity\WidgetArea; | ||
|
||
class WidgetAreaTest extends BcTestCase | ||
{ | ||
public function setUp(): void | ||
{ | ||
parent::setUp(); | ||
$this->WidgetArea = $this->getTableLocator()->get('BcWidgetArea.WidgetAreas'); | ||
} | ||
|
||
public function tearDown(): void | ||
{ | ||
unset($this->WidgetArea); | ||
parent::tearDown(); | ||
} | ||
|
||
/** | ||
* test _getCount | ||
*/ | ||
public function test_getCount() | ||
{ | ||
$widgetArea = new WidgetArea([ | ||
'widgets' => 'a:1:{i:0;a:1:{s:4:"test";a:2:{s:4:"sort";i:1;s:4:"name";s:4:"test";}}}', | ||
]); | ||
$getCount = $this->execPrivateMethod($widgetArea, '_getCount', []); | ||
$this->assertEquals(1, $getCount); | ||
} | ||
|
||
/** | ||
* test _getWidgetsArray | ||
*/ | ||
public function test_getWidgetsArray() | ||
{ | ||
$this->markTestIncomplete('こちらのテストはまだ未確認です'); | ||
} | ||
|
||
/** | ||
* test _setWidgets | ||
*/ | ||
public function test_setWidgets() | ||
{ | ||
$this->markTestIncomplete('こちらのテストはまだ未確認です'); | ||
} | ||
} |