class Transaction extends GaletteTestCase
{
protected int $seed = 95842354;
- /** @var \Galette\Entity\Transaction */
private \Galette\Entity\Transaction $transaction;
/**
/**
* Create test transaction in database
*
- * @return void
+ * @return \Galette\Entity\Transaction
*/
- private function createTransaction()
+ private function createTransaction(): \Galette\Entity\Transaction
{
$date = new \DateTime(); // 2020-11-07
$data = [
*
* @return void
*/
- public function testEmpty()
+ public function testEmpty(): void
{
$this->assertNull($this->transaction->id);
$this->assertEquals(date('Y-m-d'), $this->transaction->date);
*
* @return void
*/
- public function testGetterSetter()
+ public function testGetterSetter(): void
{
$transaction = $this->transaction;
*
* @return void
*/
- public function testCreation()
+ public function testCreation(): void
{
$this->getMemberOne();
//create transaction for member
*
* @return void
*/
- public function testUpdate()
+ public function testUpdate(): void
{
$this->getMemberOne();
//create transaction for member
*
* @return void
*/
- public function testGetFieldLabel()
+ public function testGetFieldLabel(): void
{
$this->assertSame(
'Amount',
*
* @return void
*/
- public function testLoad()
+ public function testLoad(): void
{
$this->login = $this->getMockBuilder(\Galette\Core\Login::class)
->setConstructorArgs(array($this->zdb, new \Galette\Core\I18n()))
*
* @return void
*/
- public function testRemove()
+ public function testRemove(): void
{
$this->logSuperAdmin();
*
* @return void
*/
- public function testCan()
+ public function testCan(): void
{
$this->getMemberOne();
//create transaction for member