/** * @test */ public function setCachedVotesForIntegerSetsCachedVotes() { $this->subject->setCachedVotes(12); $this->assertAttributeEquals(12, 'cachedVotes', $this->subject); }