For issues related to the current stable release please use it's own Help forum.
IMPORTANT:Please read this before using an git or nightly build version: wiki.webtrees.net/en/GIT

Before asking for help please read "How to request help" by clicking on that tab above here.

TOPIC: [SOLVED] phpunit test

phpunit test 1 week 1 day ago #1

  • bgva2005
  • bgva2005's Avatar
  • Offline
  • New
  • Posts: 10
I am trying to run the unit test inside Test folder.

I am running this command:
./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/TestCase

I am receiving this answer:


The administrator has disabled public write access.

phpunit test 1 week 1 day ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11357
This is the expected output.

TestCase.php is a base class, that creates the test environment.

It doesn't do any testing of its own.

All the other tests extend this class.


There is a phpunit.xml.dist file included - so all you need to do is run

vendor/bin/phpunit
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

[SOLVED] phpunit test 1 week 1 day ago #3

  • bgva2005
  • bgva2005's Avatar
  • Offline
  • New
  • Posts: 10
Problem solved.
The administrator has disabled public write access.
Powered by Kunena Forum