Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Releases: mrtnzlml-archive/testbench

v2.1

22 Mar 09:26
Compare
Choose a tag to compare

This release introduces Testbench\TNetteDatabase trait with getContext method.

v2.0.4

13 Mar 10:30
Compare
Choose a tag to compare

Now it's possible to use multiple traits at once without error. Also internal trait methods are protected now, therefore you can create custom test case with traits instead of Tester\TestCase.

v2.0.1

25 Feb 11:08
Compare
Choose a tag to compare

901246d TPresenter: Allow login with own identity implementation

v2.0

13 Feb 17:15
Compare
Choose a tag to compare

Introducing new traits:

And new mocks:

  • ApplicationRequestMock
  • ConnectionMock
  • ControlMock
  • HttpRequestMock
  • PresenterMock

There is also new TestbnechExtension, RUNLEVEL environment variable for skipping slow tests and run-tests script so you can run tests from website root by vendor/bin/run-tests ... or RUNLEVEL=5 vendor/bin/run-tests for running with env variable.

Testbench (TDoctrine trait respectively) behaves differently with MySQL and PostgreSQL. Theoretically (well practically) it's quicker with MySQL because it's possible to jump between test databases using USE ... statement.

For more information please read README file and WIKI