Skip to content

Commit

Permalink
CustomLinksTableTest-initialize (#2760)
Browse files Browse the repository at this point in the history
Co-authored-by: Nghiem <[email protected]>
  • Loading branch information
nghiem-mb and nghiemnv1205 authored Sep 25, 2023
1 parent 8d9ce6e commit b824857
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class CustomLinksTable extends AppTable
* @param array $config
* @checked
* @noTodo
* @unitTest
*/
public function initialize(array $config): void
{
Expand Down
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()
{

}


}

0 comments on commit b824857

Please sign in to comment.