Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomLinksTableTest-initialize #2761

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
{

}


}