Commit graph

174 commits

Author SHA1 Message Date
Shish
5dab234630 create test users individually 2020-01-27 13:00:09 +00:00
Shish
3631084afd format 2020-01-26 16:38:26 +00:00
Shish
9eb5acf2dc use strict types 2020-01-26 16:27:56 +00:00
Shish
849d04bf7a more phpunit 2019-11-21 17:18:43 +00:00
Shish
1e4f08e9e9 updates for phpunit 8 2019-11-21 17:16:11 +00:00
Shish
659ef7dac9 update dependencies 2019-11-14 18:24:09 +00:00
Shish
14ca4f545d stub config so scrutinizer stops complaining about missing define()s 2019-10-01 13:28:38 +01:00
Shish
54067f02a4 fix merge 2019-09-29 15:44:59 +01:00
Shish
e6a402cd4e Merge branch 'custom_ratings' into develop 2019-09-29 14:41:14 +01:00
matthew
cf8ed3b134 Added UserLoginEvent 2019-09-29 14:21:23 +01:00
Matthew Barbour
761834b6fa Updated tests to generate user config 2019-09-29 14:20:40 +01:00
Matthew Barbour
3b6ad05b6d Updated test extension test 2019-08-07 16:36:39 -05:00
matthew
aa5a04fbd3 Further adjusting tests for user config
Renamed Rating to ImageRating to prevent test system from trying to make an extension of it
2019-08-07 15:49:59 -05:00
Matthew Barbour
3560a19f79 Updated tests to generate user config 2019-08-07 15:49:58 -05:00
Matthew Barbour
a82fb56063 Added force flag to image deletion event to override trash extension 2019-07-05 18:31:31 +01:00
Matthew Barbour
826c623538 PageMode constants 2019-06-18 21:04:31 -05:00
Shish
34b05cca7c PSR-2. I'm not a huge fan, but ugly consistency beats no consistency... 2019-05-28 17:59:38 +01:00
Shish
0aec16aa5b specify DB in docker env 2019-02-02 12:06:30 +00:00
Shish
f772b30301 fix some tests 2018-11-07 15:12:09 +00:00
Shish
b2f10ea5ab split up files in core/ for saner management 2018-11-05 22:30:18 +00:00
Shish
cdfc97d19b begin tests in core 2018-11-05 20:53:58 +00:00
Shish
bc68137797 use svg-sanitize to sanitize SVG files 2018-02-20 22:00:24 +00:00
Shish
54da35f5db fix warning in local mode 2017-09-22 19:09:07 +01:00
Shish
977c3db1e3 PHP7 type annotations 2017-09-21 05:21:42 +01:00
Shish
df3f061533 PHPUnit 6 2017-09-21 04:16:36 +01:00
Shish
1566ff7eaa un-confuse phpunit 2017-09-17 19:37:30 +01:00
Shish
860e828c3e Merge branch 'develop' of https://github.com/shish/shimmie2 into develop 2017-09-17 18:59:59 +01:00
Shish
e1d6ff0f4e composer update 2017-09-17 18:16:07 +01:00
jgen
f492c6c2c3 Ensure that the Image object tag_array and the metadata array tags are always arrays. 2017-05-12 00:57:50 -07:00
Scrutinizer Auto-Fixer
1caef6d633 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2017-03-12 23:45:38 +00:00
jgen
9cf325d195 Try global namespace 2017-03-09 01:31:41 -08:00
Shish
28c10d1748 unit tests are input too 2016-07-30 23:08:08 +01:00
Shish
f3a3c76988 better test router 2016-06-18 00:45:58 +01:00
Shish
76c2815b2b unit test bettering 2016-06-17 23:42:12 +01:00
Shish
c41c9d680f search tests 2016-06-06 22:42:40 +01:00
Shish
793bc3614b loooooooads of artists refactoring and tidying 2015-09-27 01:03:58 +01:00
Shish
c337abe280 skip tests for extensions who don't support the current db 2015-09-21 10:05:32 +01:00
Shish
13dfb8861f more tests 2015-09-20 21:20:28 +01:00
Shish
9f10f923fe chdir() in phpunit bootstrap 2015-09-20 20:04:16 +01:00
Shish
83a1336b76 more test 2015-09-20 20:04:16 +01:00
Shish
ec484c1144 more phpunit-ing 2015-09-20 20:04:13 +01:00
Shish
2d622cf908 put test svg in a file 2015-09-20 20:03:29 +01:00
Shish
9af5995dcc PHPUnit proof of concept 2015-09-20 20:03:29 +01:00
Shish
e3959e5ec8 remove simpletest 2015-09-20 20:03:29 +01:00
Shish
e2b6f2c2dd global management 2015-08-02 19:41:06 +01:00
Shish
0b385d05af wibble init into a separate bootstrap file, for more unit-testability 2015-08-02 19:40:57 +01:00
Shish
4f413e7386 using system php-fpm always gets us php5.3 ~_~ 2015-08-01 17:43:57 +01:00
Shish
21a1b176c6 separate router from index.php 2015-08-01 16:36:07 +01:00
Shish
ac5f0f611c also install sqlite driver 2015-08-01 14:12:58 +01:00
Shish
cb9cc07d30 add test-info 2015-08-01 14:05:42 +01:00
jgen
b3f9925839 PHPDoc all the things! 2014-04-28 18:22:57 -04:00
jgen
a7faefc5e0 Spelling. 2014-04-24 22:35:01 -04:00
jgen
e2fa6d316e Realpath isn't used anymore. 2014-02-22 23:36:08 -05:00
jgen
6da5f27447 Make sure we install the php5 postgres drivers. 2014-02-22 19:44:50 -05:00
jgen
8bbaf85114 Need to figure out why the Post data differs from what is specified on the command line. 2014-02-22 19:10:18 -05:00
jgen
13e844a2f7 Output the DSN. 2014-02-22 18:32:42 -05:00
jgen
8ade958dd1 Working on getting PostgreSQL to work on Travis. 2014-02-22 16:04:04 -05:00
jgen
3d1217a1be Trim trailing blank space. 2014-02-22 15:36:52 -05:00
jgen
e6057c656f Re-order the events to ensure InitExtEvent() is fired off both with and without users. 2014-02-22 01:22:14 -05:00
jgen
43f59cc4c0 Fix un-necessary PHP Notices being generated in the error log files. 2014-02-21 20:36:19 -05:00
jgen
9255c861f7 Cleaning up. 2014-02-19 20:50:00 -05:00
jgen
0dd9c19bca Need to escape the dollar signs to prevent BASH from thinking they are vars. 2014-02-19 18:49:56 -05:00
jgen
bbaa9fc6f1 Change the nginx config. 2014-02-19 18:45:28 -05:00
jgen
f3c379b8db Rename the file. 2014-02-19 18:36:38 -05:00
jgen
dd18377f93 First remove the quotes, then the whitespace, then the trailing slash. 2014-02-19 18:26:01 -05:00
jgen
4e0d7d14ae Forgot the brackets. 2014-02-19 18:19:56 -05:00
jgen
eea4d34978 We can actually push the trim functions to when we create the define, less overhead. 2014-02-19 18:17:26 -05:00
jgen
1a7cbc9b2a Check the actual http response code. 2014-02-19 16:40:28 -05:00
jgen
7d90c20297 Cleaning up. 2014-02-19 16:16:01 -05:00
jgen
61bf9b9b3e Put the database into auto commit mode. 2014-02-19 04:19:17 -05:00
jgen
a717f5a0bd Remove the auto-run. 2014-02-19 03:42:18 -05:00
jgen
8b0ac0e9c1 The location of the webserver should be configurable in the travis file. 2014-02-19 03:29:12 -05:00
jgen
5b9107339a Let's just do it directly. 2014-02-19 02:39:13 -05:00
jgen
2ca74a3b33 Expose methods to allow users of the database class to control when transactions occur. 2014-02-19 02:12:56 -05:00
jgen
6bc9315955 Need to commit the new users to the database. 2014-02-19 01:32:51 -05:00
jgen
0013ef923e We don't want to auto run these tests as we need to load and setup things first. 2014-02-19 01:24:53 -05:00
jgen
a5907c5a79 Cleaning up a bit. 2014-02-19 00:40:16 -05:00
jgen
b4819e4b33 We need to create these users before running the tests. 2014-02-19 00:00:18 -05:00
jgen
e7918cc372 Re-work travis config file. 2014-02-18 23:02:10 -05:00
jgen
a210cc9e9e Looks like we are going to have to install, then run the tests. 2014-02-18 22:54:53 -05:00
jgen
4eab3daef4 Typo 2014-02-18 22:42:37 -05:00
jgen
39bec6b666 Wait for the config file to be written. 2014-02-18 22:35:25 -05:00
jgen
62f0be7b92 So, the config file appears to take longer to write out to the file system. 2014-02-18 22:21:14 -05:00
jgen
7d3650555f Remove the catch and just let the exception bring the test down. 2014-02-18 21:35:18 -05:00
jgen
ced3006915 At its finest. 2014-02-18 21:25:08 -05:00
jgen
7f6672a2d3 Dump out the exception. 2014-02-18 20:34:39 -05:00
jgen
491069540e Output the shimmie config on failure. 2014-02-18 20:08:23 -05:00
jgen
6c8d519859 The order of these includes matter. 2014-02-18 19:37:07 -05:00
jgen
4936432d83 Copy the setup from index.php for All tests. 2014-02-18 19:24:10 -05:00
jgen
0b06477fd0 The tests are set to Auto Run. 2014-02-18 17:36:21 -05:00
jgen
83d034653e Forgot the include. 2014-02-18 17:22:45 -05:00
jgen
2935a87073 Refactoring: Move the installer related test case into another file. 2014-02-18 17:18:25 -05:00
jgen
f2c26bde1a Update the copyright notices. 2014-02-18 16:59:07 -05:00
jgen
dc8d1b4f49 Check for the correct text if the install succeeds. 2014-02-18 16:58:31 -05:00
jgen
74748d55c0 Use a constant instead. 2014-02-18 16:28:43 -05:00
jgen
cc88a33088 PHP doesn't call it is_empty, but it does have is_null. Yay consistency. 2014-02-18 16:14:57 -05:00
jgen
f12b32b5d9 Fail if there is no database defined. 2014-02-18 15:41:42 -05:00
jgen
689621a7ed The username for the database doesn't seem to be working. 2014-02-18 13:10:19 -05:00
jgen
cfc663de44 Output the HTML when the install fails. 2014-02-18 12:57:32 -05:00
jgen
f1608d39f1 Dump more logs and change the database username. 2014-02-18 12:22:52 -05:00