Skip to content

Commit

Permalink
move casting to appframework entity
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardPosselt committed Sep 9, 2013
1 parent b4e4dd2 commit 59e4698
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions db/track.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,5 @@ public function toAPI(API $api) {
);
}

public function setNumber($number) {
parent::setNumber((int) $number);
}

}
6 changes: 0 additions & 6 deletions tests/php/unit/db/trackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,5 @@ public function testToAPI() {
), $track->toAPI($this->api));
}

public function testSetNumberCastsToInt() {
$track = new Track();
$track->setNumber("3");
$this->assertSame(3, $track->getNumber());
}


}

0 comments on commit 59e4698

Please sign in to comment.