* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. */ use \Studip\Button; class ButtonTestCase extends \Codeception\Test\Unit { function testCreate() { $this->assertEquals('', '' . Button::create()); } function testCreateWithLabel() { $this->assertEquals('', '' . Button::create('yes')); } function testCreateWithLabelAndString() { $this->assertEquals('', '' . Button::create('yes', 'aName')); } function testCreateWithLabelAndArray() { $this->assertEquals('', '' . Button::create('yes', ['a' => 1, 'b' => 2])); } function testCreateWithLabelNameAndArray() { $this->assertEquals('', '' . Button::create('yes', 'aName', ['a' => 1, 'b' => 2])); } function testCreateAccept() { $this->assertEquals('', '' . Button::createAccept()); } function testCreateCancel() { $this->assertEquals('', '' . Button::createCancel()); } function testCreatePreOrder() { $this->assertEquals('', '' . Button::createPreOrder()); } function testCreateWithInsaneArguments() { $this->assertEquals('', '' . Button::create('>ok<', 'm&m', ['mad' => 'tu"ff'])); } }