ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ChangedUserFieldAttributeTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
32{
34
35 protected function setUp(): void
36 {
37 $this->changedUserFieldAttribute = new ChangedUserFieldAttribute(
38 PropertyAttributes::VisibleToUser,
39 false,
40 true
41 );
42 }
43
44 public function testGetAttributeName(): void
45 {
46 $this->assertEquals(PropertyAttributes::VisibleToUser, $this->changedUserFieldAttribute->getAttribute());
47 }
48
49 public function testGetOldValue(): void
50 {
51 $this->assertEquals(false, $this->changedUserFieldAttribute->getOldValue());
52 }
53
54 public function testGetNewValue(): void
55 {
56 $this->assertEquals(true, $this->changedUserFieldAttribute->getNewValue());
57 }
58}