Skip to content

Commit 425b9f2

Browse files
committed
docs: Add subject edit test
1 parent ecab227 commit 425b9f2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/SubjectFieldTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,17 @@ public function testGetSubjectsFiltering()
5656
$this->assertCount(2, $noubomn_topic);
5757
$this->assertCount(0, $noubomn_place);
5858
}
59+
60+
public function testEdit()
61+
{
62+
$record = $this->getNthrecord(2);
63+
$this->assertCount(2, $record->subjects);
64+
65+
$record->subjects[0]->delete();
66+
$this->assertCount(1, $record->subjects);
67+
68+
$record->subjects[0]->delete();
69+
$this->assertCount(0, $record->subjects);
70+
}
71+
5972
}

0 commit comments

Comments
 (0)