Joas Schilling
bf2be08c9f
Fix risky tests without assertions
Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago
Robin Appelman
bca91f2216
remove static:// stream wrapper
Signed-off-by: Robin Appelman <robin@icewind.nl>
7 years ago
Thomas Müller
b55ab6d22a
Various database migration fixes (#25209)
* String columns with a length higher then 4000 are converted into a CLOB columns automagically - we have to respect this when migrating
* Adding schema migration tests to prevent unnecessary and non-sense migration steps
Fix Oracle autoincrement and unsigned handling
* Fix sqlite integer type for autoincrement
* Use lower case table names - fixes pg
* Fix postgres with default -1 - this only affect pg 9.4 servers - 9.5 seems to work fine
8 years ago
Joas Schilling
94ad54ec9b
Move tests/ to PSR-4 (#24731)
* Move a-b to PSR-4
* Move c-d to PSR-4
* Move e+g to PSR-4
* Move h-l to PSR-4
* Move m-r to PSR-4
* Move s-u to PSR-4
* Move files/ to PSR-4
* Move remaining tests to PSR-4
* Remove Test\ from old autoloader
8 years ago
Joas Schilling
55fc6536d3
FIx lib/ a-d
8 years ago
Roeland Jago Douma
876fb83ddc
getMediumStrengthGenerator is deprecated and does not do anything anymore
8 years ago
Morris Jobke
190cc2bb67
Remove OC_DB::getConnection
8 years ago
Thomas Müller
3bb6dcea64
Apply DB group annotation ...
8 years ago
Thomas Müller
5ed38a75d6
Remove remainings of mssql
9 years ago
Joas Schilling
cb3a598cdb
Make root tests extend the \Test\TestCase
9 years ago
Thomas Müller
5aab98c4bf
disable database migration unit tests for MSSQL
9 years ago
Thomas Müller
999f6216dc
- fix dropTable() and introduce tableExists()
- kill replaceDB() - this function is unused and it's implementation obviously wrong
- add method annotation OC_DB_StatementWrapper::fetchAll
- remove duplicate code in Test_DBSchema and reuse OC_DB::tableExists
- remove unused variables
10 years ago
Bart Visscher
35a8dfb2fa
More PHPDoc fixes, using scrutinizer patches as hints
10 years ago
Scrutinizer Auto-Fixer
adaee6a5a1
Scrutinizer Auto-Fixes
This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720
Enabled analysis tools:
- PHP Analyzer
- JSHint
- PHP Copy/Paste Detector
- PHP PDepend
10 years ago
Bart Visscher
addd0fba38
number as number
11 years ago
Andreas Fischer
4bc2a22317
Remove all uses of numRows().
10 years ago
kondou
9c5416fe4a
Clean up \OC\Util
- Use camelCase
- Add some phpdoc
- Fix some indents
- Use some more spacing
11 years ago
Bart Visscher
c80e76720f
Going from text to clob is not something we do.
Also Oracle DB has problems with this, see
http://abhijitbashetti.blogspot.de/2011/10/converting-varchar2-to-clob-and-clob-to.html
11 years ago
Jörn Friedrich Dreyer
4bbdd67a22
remove wrong check here
11 years ago
Jörn Friedrich Dreyer
7b6fcddbc5
use executeAudited, add table name to assert message, skip schema changing test on oracle
11 years ago
Bart Visscher
23da0c7d18
Fix tableExists test function for Oracle
11 years ago
Jörn Friedrich Dreyer
fc309caf16
fix oci dbschema test
11 years ago
Jörn Friedrich Dreyer
fc27052887
shorten table identifiers in tests
11 years ago
Jörn Friedrich Dreyer
73fb722a9e
add timeouts 3/30/90 to phpunit tests
11 years ago
Thomas Mueller
78a3625ddf
final adoptions for mssql connectivity
11 years ago
Thomas Mueller
ef88ceba8c
drop SimpleTest compatibility
11 years ago
Bart Visscher
8fb36c93f5
Add MDB2 compatible database schema writer
11 years ago
Sam Tuke
8b01286a5d
Merged branch 'master'
11 years ago
Bart Visscher
8e140ae03b
Don't test the schema export for now, first decide which format we are going to use
11 years ago
Bart Visscher
a0b15dcb12
Fix syntax error in postgres table check code
11 years ago
Bart Visscher
f242e658c3
Fix the db tests when running all tests
11 years ago
Bart Visscher
35442e5474
Add unit tests for OC_DB
11 years ago