-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CustomLinksTableTest-initialize (#2760)
Co-authored-by: Nghiem <[email protected]>
- Loading branch information
1 parent
8d9ce6e
commit b824857
Showing
2 changed files
with
126 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
125 changes: 125 additions & 0 deletions
125
plugins/bc-custom-content/tests/TestCase/Model/Table/CustomLinksTableTest.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,125 @@ | ||
<?php | ||
/** | ||
* baserCMS : Based Website Development Project <https://basercms.net> | ||
* Copyright (c) NPO baser foundation <https://baserfoundation.org/> | ||
* | ||
* @copyright Copyright (c) NPO baser foundation | ||
* @link https://basercms.net baserCMS Project | ||
* @since 5.0.0 | ||
* @license https://basercms.net/license/index.html MIT License | ||
*/ | ||
|
||
namespace BcCustomContent\Test\TestCase\Model\Table; | ||
|
||
use BaserCore\TestSuite\BcTestCase; | ||
use BcCustomContent\Model\Table\CustomLinksTable; | ||
|
||
/** | ||
* CustomTablesTableTest | ||
* @property CustomLinksTable $CustomLinksTable | ||
*/ | ||
class CustomLinksTableTest extends BcTestCase | ||
{ | ||
|
||
/** | ||
* Set up | ||
*/ | ||
public function setUp(): void | ||
{ | ||
parent::setUp(); | ||
$this->CustomLinksTable = new CustomLinksTable(); | ||
} | ||
|
||
/** | ||
* Tear down | ||
*/ | ||
public function tearDown(): void | ||
{ | ||
parent::tearDown(); | ||
} | ||
|
||
/** | ||
* test initialize | ||
*/ | ||
public function test_initialize() | ||
{ | ||
$this->assertTrue($this->CustomLinksTable->hasBehavior('Timestamp')); | ||
$this->assertTrue($this->CustomLinksTable->hasBehavior('Tree')); | ||
$this->assertTrue($this->CustomLinksTable->hasAssociation('CustomFields')); | ||
$this->assertTrue($this->CustomLinksTable->hasAssociation('CustomTables')); | ||
} | ||
|
||
/** | ||
* test validationDefault | ||
*/ | ||
public function test_validationDefault() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* test implementedEvents | ||
*/ | ||
public function test_implementedEvents() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* test setTreeScope | ||
*/ | ||
public function test_setTreeScope() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* test beforeSave | ||
*/ | ||
public function test_beforeSave() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* test beforeDelete | ||
*/ | ||
public function test_beforeDelete() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* test updateSort | ||
*/ | ||
public function test_updateSort() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* test getCurentSort | ||
*/ | ||
public function test_getCurentSort() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* test moveOffset | ||
*/ | ||
public function test_moveOffset() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* test getUniqueName | ||
*/ | ||
public function test_getUniqueName() | ||
{ | ||
|
||
} | ||
|
||
|
||
} |