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

Releases: mrtnzlml/testbench

v2.5.0

Choose a tag to compare

@f3l1x f3l1x released this 04 Aug 10:51

Bump! 🍂

Diff: v2.4.2...v2.5.0

v2.4.2

Choose a tag to compare

@f3l1x f3l1x released this 04 Aug 10:45

Bump! ♐️

Diff: v2.4.1...v2.4.2

v2.4.1

Choose a tag to compare

@f3l1x f3l1x released this 04 Aug 10:44

Bump! 🈂️

Diff: v2.4...v2.4.1

v2.4

Choose a tag to compare

@mrtnzlml mrtnzlml released this 12 Oct 16:57

Diff: v2.4...v2.4.1

  • 41ba977 Add support for shared databases
  • e42fefb Use Tester\Environment::THREAD instead of PID
  • 7a546e1 TestbenchExtension: fix options configuration in prepareNetteDatabase
  • 1723771 TPresenter: add support for checkAjaxSignal test method
  • 93b7680 TestbenchExtension: use default config parameters
  • a38c52d TPresenter: use IPresenterFactory::createPresenter to create a presenter instance
  • e2fd316 Add fake $_SERVER['HTTP_HOST'] and $_SERVER['SERVER_NAME']
  • 7c2624f Scaffold: generate boolean values for checkbox fields
  • 7b6b3ff Scaffold: do not add submit buttons into generated test

v2.3.1

Choose a tag to compare

@f3l1x f3l1x released this 04 Aug 10:45

Bump! 🍶

Diff: v2.3...v2.3.1

v2.3

Choose a tag to compare

@mrtnzlml mrtnzlml released this 24 Jul 09:55

Bump! 🤒

Diff: v2.2.1...v2.3

New features and changes:

  • TCompiledContainer::refreshContainer: possibility to refresh container with parameters
  • TComponent: support for anonymous classes (PHP 7)
  • TPresenter: testing forms fields if they are defined as required (experimantal)
  • ControlMock: new fake links format: <a href="link|data!#hash(0=10, a=20, b=30)">
  • added Scaffold
  • fake database is now used every time needed
  • automatically use -C switch if possible
  • added support for Doctrine migrations (enable using testbench.migrations: yes in tests config)
  • fixed compatibility with Nette 2.4
  • dropped support for outdated PHP 5.4 and 5.5
  • minor fixes

Feel free to improve Testbench and send PR.

v2.2.1

Choose a tag to compare

@f3l1x f3l1x released this 04 Aug 10:47

Bump! 🏭

Diff: v2.2...v2.2.1

v2.2

Choose a tag to compare

@mrtnzlml mrtnzlml released this 13 May 11:46

Bump! 😂

Diff: v2.1.6...v2.2

TPresenter::checkRedirect() - improve error message:

screenshot from 2016-05-12 13 25 27

This release also fixes wrong behavior while checking URL path after redirect. It was possible to use / as path and URL /x/y/z passed without error. This wasn't intended. Now it throws error, because it is error. You can fix it by changing path to the /x/y/z or by using regular expressin /.* for example.

v2.1.6

Choose a tag to compare

@mrtnzlml mrtnzlml released this 23 Apr 22:33

With this update Testbench is going to show you what kind of error (and where) happened during form test:

screenshot from 2016-04-24 00 29 36

v2.1.1

Choose a tag to compare

@mrtnzlml mrtnzlml released this 27 Mar 21:26

Now it's possible to test forms with CSRF protection. Also there are new shortcuts for checking RUNLEVEL: markTestAsSlow and markTestAsVerySlow in Testbench\TCompiledContainer.