public function TagadelicTagTest::testGetWeight in Tagadelic 8.3
@covers ::getWeight
File
- tests/
src/ Unit/ TagadelicTagTest.php, line 66 - Contains \Drupal\Tests\tagadelic\Unit\TagadelicTagTest.
Class
- TagadelicTagTest
- @coversDefaultClass \Drupal\tagadelic\TagadelicTag @group tagadelic
Namespace
Drupal\Tests\tagadelic\UnitCode
public function testGetWeight() {
$this
->assertEquals(0.0, $this->object
->getWeight());
$this->object
->setWeight(1.0);
$this
->assertEquals(1.0, $this->object
->getWeight());
}