Skip to content

Commit

Permalink
adding code to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-ko committed Aug 23, 2024
1 parent 5c372a6 commit ea147bc
Show file tree
Hide file tree
Showing 2 changed files with 10 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 @@ -94,4 +94,8 @@ public function addingAsecondFunction() {
public function moreDataFound() {
return true;
}

public function returnTrue() {
return true;
}
}
6 changes: 6 additions & 0 deletions tests/Unit/ChargeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,11 @@ public function testMoreDataFound() {
$this->assertTrue($result);

}
public function testReturnTrue() {

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

}
}

0 comments on commit ea147bc

Please sign in to comment.