PHP Class BeatmapDiscussionsControllerTest, osu-web

Inheritance: extends TestCase, use trait Illuminate\Foundation\Testing\DatabaseTransactions
Show file Open project: ppy/osu-web

Public Methods

Method Description
setUp ( )
testPutVoteChange ( ) voting again only changes the score
testPutVoteInitial ( ) normal vote
testPutVoteRemove ( ) voting 0 will remove the vote

Private Methods

Method Description
currentScore ( $discussion )

Method Details

setUp() public method

public setUp ( )

testPutVoteChange() public method

voting again only changes the score
public testPutVoteChange ( )

testPutVoteInitial() public method

normal vote
public testPutVoteInitial ( )

testPutVoteRemove() public method

voting 0 will remove the vote
public testPutVoteRemove ( )