Sébastien Lucas
49c1867433
Fix error
2014-01-11 20:52:10 +01:00
Sébastien Lucas
bfc96f5ef7
Rename variable for better understanding
2014-01-09 21:07:20 +01:00
Sébastien Lucas
24e0a14b89
Simplify a little some array queries
2014-01-08 17:51:40 +01:00
Sébastien Lucas
91aa062860
Big refactoring of the Json handling, I followed what I did from OPDS. It doesn't still feel right but I think it's better.
2014-01-07 21:22:35 +01:00
Sébastien Lucas
e96eaf86e5
Add a test for function creation. I can't manage to make it fail when needed. Still I'll commit anyway !
2014-01-06 21:24:11 +01:00
Sébastien Lucas
e83fb02868
Typo
2014-01-04 09:58:47 +01:00
Sébastien Lucas
a28d52e633
Add a larger idle timeout could help with Android and remove IE8 for now (got to test better)
2014-01-03 23:29:50 +01:00
Sébastien Lucas
c584b7355e
Change a little the way browser are tested :
...
* Use latest version of Firefox
* Add IE8
* Replace IE10 by IE11
* Add Safari 7 on Mac
* Add Android browser
2014-01-03 14:23:33 +01:00
Sébastien Lucas
57f93b6537
New tests for OPDS validation.
2014-01-03 13:53:52 +01:00
Sébastien Lucas
22afa8c26f
Add the real OPDSValidator (from https://github.com/zetaben/opds-validator ) in addition to the relax-ng validation.
2014-01-02 22:23:24 +01:00
Sébastien Lucas
f947da2bd8
Add a test for the opensearchdescription.
2014-01-02 16:56:01 +01:00
Sébastien Lucas
b4d3fe6b22
Add a test for unknow mimetype and use finfo_file in this case. Inspired by At_Libitum. re #72
2013-12-31 11:12:34 +01:00
Sébastien Lucas
09c81e50e8
Fix a warning. re #127
2013-12-24 11:36:05 +01:00
Sébastien Lucas
906e792bb8
Add a check with ignored categories with typeahead. re #34
2013-12-23 11:44:26 +01:00
Sébastien Lucas
f8249e73c6
Add the search by category with the standard search. Again inspired by At-Libitum. re #34
2013-12-23 08:58:56 +01:00
Sébastien Lucas
9a15d0e1a4
Integrate a little better the typeahead search in the normal search page. Heavily based on At-Libitum work. re #34
2013-12-22 18:40:03 +01:00
Sébastien Lucas
a4c351728f
Correctly test the ignore param. re #34
2013-12-17 21:03:55 +01:00
Sébastien Lucas
8d7b3afc3b
The clover is allowed to be missing (for hhvm).
2013-12-17 20:59:22 +01:00
Sébastien Lucas
19dcd73585
Rename the ignored parameter. re #34
2013-12-17 20:56:41 +01:00
Sébastien Lucas
15c3ae9947
Fix the tests. re #34
2013-12-16 21:41:34 +01:00
Sébastien Lucas
73277af6f4
Another test. re #127
2013-12-15 15:08:20 +01:00
Sébastien Lucas
3e592ebc81
Test getFilePath. re #127
2013-12-15 14:44:10 +01:00
Sébastien Lucas
e4c44711de
Properly remove the temp file. re #127
2013-12-15 14:43:33 +01:00
Sébastien Lucas
27c7743995
Fix the thumbnail generation in case the same width is asked and a some unit test. re #127
2013-12-15 14:23:45 +01:00
Sébastien Lucas
5a6d44a158
Remove coveralls it simply does not work correctly and use Scrutinizer instead.
2013-12-14 21:46:48 +01:00
Sébastien Lucas
d3934b9254
Fix a warning. re #127
2013-12-14 18:58:43 +01:00
Sébastien Lucas
8a72e1a6fd
Ensure the check can be tested. re #127
2013-12-14 18:48:34 +01:00
Sébastien Lucas
0a22c6c579
Enable again phpunit. For now no answer from Sauce support :(
2013-12-13 20:54:07 +01:00
Sébastien Lucas
9ef3879e97
For now I'll comment the unneeded test (that last one check all that).
2013-12-13 08:53:28 +01:00
Sébastien Lucas
3ba51ce1c6
Try again paratest with Sauce.
2013-12-12 23:15:41 +01:00
Sébastien Lucas
42eb4c2a70
Organize a little the test to avoid timing bugs.
2013-12-12 21:53:45 +01:00
Sébastien Lucas
31d2c69341
Add a test to check if tag filter is working correctly.
2013-12-12 21:01:07 +01:00
Sébastien Lucas
02d33bc825
Try a parameter change.
2013-12-11 20:10:36 +01:00
Sébastien Lucas
2a20fa688e
Typo. re #123
2013-12-09 09:16:37 +01:00
Sébastien Lucas
d6d63e7ee3
New test for the previous configuration item. re #123
2013-12-08 21:14:20 +01:00
Sébastien Lucas
002c7596ea
Changing the number of book per pages changed the search with multiple database. Reported by At-Libitum. fix #124
2013-12-07 21:17:38 +01:00
Sébastien Lucas
efdbb09357
Hopefully fix coveralls
2013-12-05 13:02:39 +01:00
Sébastien Lucas
0f09ef5f8c
Remove trailing spaces
2013-12-05 10:52:51 +01:00
Sébastien Lucas
9f5f00e114
Replace CRLF by LF
2013-12-05 10:50:53 +01:00
Sébastien Lucas
40139bd18c
Remove a tab
2013-12-05 10:49:57 +01:00
Sébastien Lucas
980446d9c6
Better testing of Data object
2013-12-05 10:21:46 +01:00
Sébastien Lucas
91e6b10358
The % covered is strange. Let's try that
2013-12-04 19:15:35 +01:00
Sébastien Lucas
ccf06383c1
coveralls try to use a src directory. Change the config
2013-12-04 18:29:41 +01:00
Sébastien Lucas
b44d5e9eee
Try to enable coveralls
2013-12-04 18:16:47 +01:00
Sébastien Lucas
745036d262
Test GetBookByDataId.
2013-12-03 18:35:48 +01:00
Sébastien Lucas
888c814af4
Better test for getRating
2013-12-03 18:31:56 +01:00
Sébastien Lucas
36fb1b66ed
Another test
2013-12-03 18:29:28 +01:00
Sébastien Lucas
ecfc8f5e5c
Add another test
2013-12-03 18:26:01 +01:00
Sébastien Lucas
ac5e1958de
Fix tests
2013-12-03 11:22:17 +01:00
At-Libitum
f87963ea8a
Merge git://github.com/seblucas/cops
...
Conflicts:
test/pageTest.php - RESOLVED
2013-12-02 14:53:10 +01:00
At-Libitum
d4cedf3737
removed some unused variables from base.php and pageTest.php
...
added custom columns to ```default_config.php``` for pageTest.php
2013-12-01 13:25:34 +01:00
Sébastien Lucas
a4ba43d75e
Horrible copy paste ...
2013-11-30 17:11:20 +01:00
Sébastien Lucas
268565882d
Add a test to avoid testing on Sauce when the API KEY is not here ... (Pull request).
2013-11-30 16:56:37 +01:00
Sébastien Lucas
8b87e16728
Return to phpunit. worked better
2013-11-29 16:05:19 +01:00
Sébastien Lucas
2f6676760f
Try to correctly set the home page.
2013-11-29 15:35:12 +01:00
Sébastien Lucas
31954249b3
Try paratest
2013-11-29 11:46:10 +01:00
Sébastien Lucas
b70255da84
Should work better.
2013-11-29 10:47:25 +01:00
Sébastien Lucas
3a3d473161
Should work
2013-11-29 09:44:51 +01:00
Sébastien Lucas
adc02ae320
Try to debug manually
2013-11-29 07:07:22 +01:00
Sébastien Lucas
0dbeb96d1c
Server side again
2013-11-28 22:03:25 +01:00
Sébastien Lucas
58a3a62a2a
Let's try with PHP 5.4
2013-11-28 20:49:52 +01:00
Sébastien Lucas
1c744d73f5
Another comment
2013-11-28 19:58:24 +01:00
Sébastien Lucas
9fc3706209
Disable client side rendering with sauce. Enable all tests.
2013-11-28 18:25:19 +01:00
Sébastien Lucas
834ad620f6
Test with server side rendering
2013-11-28 18:12:57 +01:00
Sébastien Lucas
082aa11ceb
Test again with IE
2013-11-28 18:01:30 +01:00
Sébastien Lucas
88622fcc71
Another try again
2013-11-28 17:52:43 +01:00
Sébastien Lucas
a361b31fba
Change browser
2013-11-28 17:45:57 +01:00
Sébastien Lucas
c2ee1733e0
another try
2013-11-28 16:28:41 +01:00
Sébastien Lucas
758833375d
Should not hurt
2013-11-28 16:21:40 +01:00
Sébastien Lucas
7b1882dbcc
Another try
2013-11-28 16:14:57 +01:00
Sébastien Lucas
3673716e89
More wait.
2013-11-28 15:39:05 +01:00
Sébastien Lucas
ce8223116c
And try again
2013-11-28 15:27:50 +01:00
Sébastien Lucas
d420948d59
Erreur
2013-11-28 15:14:15 +01:00
Sébastien Lucas
144d3b81b9
It connected but the test did not work.
2013-11-28 15:00:42 +01:00
Sébastien Lucas
016f99c1fa
And again.
2013-11-28 14:49:14 +01:00
Sébastien Lucas
136315a492
And try again
2013-11-28 14:17:21 +01:00
Sébastien Lucas
faf67b8964
Getting closer.
2013-11-28 14:09:07 +01:00
Sébastien Lucas
161c2653b4
Another try again.
2013-11-28 14:01:47 +01:00
Sébastien Lucas
61d7aa70da
Another try.
2013-11-28 13:52:21 +01:00
Sébastien Lucas
a76776fd8e
Try another way
2013-11-28 13:45:10 +01:00
Sébastien Lucas
6856677566
Another try
2013-11-28 12:24:19 +01:00
Sébastien Lucas
d6f6e65d56
Silly me.
2013-11-28 12:06:30 +01:00
Sébastien Lucas
d5873492e7
And again
2013-11-28 11:50:30 +01:00
Sébastien Lucas
198323773d
Finally maybe it'll work.
2013-11-28 11:45:54 +01:00
Sébastien Lucas
99768e82ee
Hopefully it'll work
2013-11-28 11:11:07 +01:00
Sébastien Lucas
cacbb94e86
again.
2013-11-28 10:41:14 +01:00
Sébastien Lucas
876fba3053
Typo again
2013-11-28 10:20:34 +01:00
Sébastien Lucas
8caa548ec0
Bad test
2013-11-28 10:06:31 +01:00
Sébastien Lucas
e7dc302727
Try to have a smarter Sauce test.
2013-11-28 09:44:17 +01:00
Sébastien Lucas
659cbd4120
Fix warnings.
2013-11-26 18:20:55 +01:00
Sébastien Lucas
263da19735
Again some warnings fix.
2013-11-26 18:12:36 +01:00
Sébastien Lucas
34ec943132
Fix warnings
2013-11-26 18:02:03 +01:00
Sébastien Lucas
fed84c7171
Add a test for typeahead search with multiple databases. re #96
2013-11-26 17:39:17 +01:00
Sébastien Lucas
39cf43cbc2
Add some test of base functions. re #96
2013-11-26 17:17:22 +01:00
Sébastien Lucas
6029355085
Add a new test. re #96
2013-11-26 17:01:57 +01:00
At-Libitum
9efcd661a0
**2012-11-22**
...
**Added global support for publishers**
Files modified:
*base.php*
- changed class Entry,
- adding a constant ```cops:publishers``` to the icon array for the feed.
- changed class Page
- added branches to the page selector switch
- changed Page->public function InitializeContent
- added call to pull publisher count from database
- changed class PageAllBooks
- changed it so ```getCurrentOption``` is actually used...
- added page descendant class ```PageAllPublishers```
- handles pulling the publishers category from database
- added page descendant class ```PagePublisherDetail```
- handles pulling the books per publisher data from database
- changed class PageQueryResult
- added constant and switches for publisher search scope
- abstract class Base
- added constants for the publisher pages
*book.php*
- added require statement for publisher.php
- added ```SQL_BOOKS_BY_PUBLISHER``` query to retrieve books by publisher.
- changed class Book
- added query constant
- added publisher item
- added test in case no known publisher
- added publishername and url array elements for the JSON output
- added public function ```getPublisher```
- added public static function ```getBooksByPublisher``` to fire the query
- changed function getJson
- added publisher category to search
- added publishername (single) and publishertitle(plural) localization entries to i18n translation array
*index.php*
- added require statement for publisher.php
*lang/Localization_en.json
- added new localization entries for publisher labels (see below)
```
"publisher.alphabetical.many":"Alphabetical index of the {0} publishers",
"publisher.alphabetical.none":"Alphabetical index of absolutely no publisher",
"publisher.alphabetical.one":"Alphabetical index of the single publisher",
"publisher.name":"Publisher",
"publisher.title":"Publishers",
"publisherword.many":"{0} publishers",
"publisherword.none":"No publisher",
"publisherword.one":"1 publisher",
"search.result.publisher":"Search result for *{0}* in publishers",
```
*templates\bookdetail.html*
- added publisher label and item to bookdetail popup
*test\bookTest.php*
- added indices and names of publishers added to testdatabase as comment
- added test function ```testGetBooksByPublisher```
- changed test function testGetBookById to add assertion for publisher name
- changed test function testTypeaheadSearch to add search on partial publisher name.
*test\pageTest.php*
- changed test function testPageIndex to insert publisher category and adjust page indices
- changed test function testPageIndexWithCustomColum to adjust for the changed page indices
- added test function testPageAllPublishers
- added test function testPagePublishersDetail
- added test function testPageSearchScopePublishers
*test\BaseWithSomeBooks\metadata.db*
- added 5 publishers spread across all 14 books, replacing the original publisher Feedbooks
Files added:
*publisher.php*
2013-11-22 22:08:09 +01:00
Sébastien Lucas
020e440faf
New test for At Libitum's modifications. re #96
2013-11-13 10:32:43 +01:00
Sébastien Lucas
85151c16e1
also use Facets. re #96
2013-10-24 21:45:17 +02:00
Sébastien Lucas
5576d81684
Add a test in multiple database. failing for the moment. re #96
2013-10-24 21:33:49 +02:00
Sébastien Lucas
e3b2a20423
Add a basic test for multidatabase. re #96
2013-10-24 14:49:59 +02:00