2024-08-13
This commit is contained in:
parent
74779c64c1
commit
6b27b6d5e6
30 changed files with 6781 additions and 2 deletions
26
web/vendor/htmlburger/carbon-fields/tests/unit-tests/Field/FieldGetSetIdTest.php
vendored
Normal file
26
web/vendor/htmlburger/carbon-fields/tests/unit-tests/Field/FieldGetSetIdTest.php
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
/**
|
||||
* @group field
|
||||
* @coversDefaultClass Carbon_Fields\Field\Field
|
||||
*/
|
||||
class FieldGetSetId extends WP_UnitTestCase {
|
||||
public $field;
|
||||
|
||||
public function setUp(): void {
|
||||
$this->field = $this->getMockForAbstractClass( 'Carbon_Fields\Field\Field', array(), '', false );
|
||||
}
|
||||
|
||||
public function tearDown(): void {
|
||||
unset( $this->field );
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::get_id
|
||||
* @covers ::set_id
|
||||
*/
|
||||
public function testGetSetId() {
|
||||
$expected = mt_rand();
|
||||
$this->field->set_id( $expected );
|
||||
$this->assertSame( $expected, $this->field->get_id() );
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue