/** * @test */ public function shouldBeAbleToSignIn() { // given $this->createUser("username", "Pass1234"); LudoDB::enableSqlLogging(); /// when $login = new Session(); $login->signIn(array("username" => "username", "password" => md5("Pass1234"))); // then $this->assertNotNull($login->getKey()); $this->assertTrue($login->isSignedIn()); }
public function shouldBeAbleToSpecifyLimitInSql() { // given LudoDB::enableSqlLogging(); $this->createPeople(); $people = new PeoplePaged(0, 10); $values = $people->getValues(); // then $this->assertEquals(10, count($values)); }