Skip to content

Commit

Permalink
adding more features
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-ko committed Aug 23, 2024
1 parent f1d41c0 commit 5c372a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Models/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,8 @@ public function addSomeFunctions() {
public function addingAsecondFunction() {
return true;
}

public function moreDataFound() {
return true;
}
}
9 changes: 9 additions & 0 deletions tests/Unit/ChargeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,13 @@ public function testAddingAsecondFunction() {
$this->assertTrue($result);

}

public function testMoreDataFound() {

$charge = Charge::factory()->make();
$result = $charge->moreDataFound();
$this->assertTrue($result);

}

}

0 comments on commit 5c372a6

Please sign in to comment.