PHP 클래스 RedUNIT\Base\Finding

Tests whether we can find beans by passing SQL queries to the Facade or the Finder Service Class.
저자: Gabor de Mooij and the RedBeanPHP Community
상속: extends RedUNIT\Base
파일 보기 프로젝트 열기: gabordemooij/redbean

공개 메소드들

메소드 설명
testFindAndExport ( ) : void Test find and export.
testFindError ( ) : void Test error handling of SQL states.
testFindLike ( ) : void Tests the findLike method.
testFindLike2 ( ) : void Test findLike.
testFindMulti ( ) : void Test findMulti(). Basic version.
testFindMultiDIY ( ) : void Test findMulti() with manual crafted fields.
testFindMultiDirectArray ( ) : void Test findMuli with self-made arrays.
testFindMultiErrorHandling ( ) : void FindMulti should not throw errors in case of a record-type mismatch.
testFindMultiExtFunc ( ) : void You can build your own mapping functions to remap records to bean.
testFindOneLimitOne ( ) : void Test whether findOne gets a LIMIT 1 clause.
testFindOrCreate ( ) : void Tests the findOrCreate method.
testFinding ( ) : void Begin testing.
testINClause ( ) : void Test forming IN-clause using genSlots and flat.
testMultiAdvanced ( ) : void Tests the complex use case for findMulti().
testTreeTraversal ( ) : void Test tree traversal with searchIn().

비공개 메소드들

메소드 설명
getColors ( array $flowers, boolean $noSort = FALSE ) : string Helper for testing findLike.
insertBookData ( ) : void Inserts data for findMulti-tests.
map ( string $parentName, string $childName ) : array A custom record-to-bean mapping function for findMulti test.

메소드 상세

testFindAndExport() 공개 메소드

Test find and export.
public testFindAndExport ( ) : void
리턴 void

testFindError() 공개 메소드

Test error handling of SQL states.
public testFindError ( ) : void
리턴 void

testFindLike() 공개 메소드

Tests the findLike method.
public testFindLike ( ) : void
리턴 void

testFindLike2() 공개 메소드

Test findLike.
public testFindLike2 ( ) : void
리턴 void

testFindMulti() 공개 메소드

Test findMulti(). Basic version.
public testFindMulti ( ) : void
리턴 void

testFindMultiDIY() 공개 메소드

Test findMulti() with manual crafted fields.
public testFindMultiDIY ( ) : void
리턴 void

testFindMultiDirectArray() 공개 메소드

Test findMuli with self-made arrays.
public testFindMultiDirectArray ( ) : void
리턴 void

testFindMultiErrorHandling() 공개 메소드

FindMulti should not throw errors in case of a record-type mismatch.
public testFindMultiErrorHandling ( ) : void
리턴 void

testFindMultiExtFunc() 공개 메소드

Just like the preloader once did. However now you can define the mapping yourself using closures. This test verifies that such a function would actually work. This method also tests whether empty records (resulting from LEFT JOINS for instance) do not produce unnecessary, empty beans.
public testFindMultiExtFunc ( ) : void
리턴 void

testFindOneLimitOne() 공개 메소드

Test whether findOne gets a LIMIT 1 clause.
public testFindOneLimitOne ( ) : void
리턴 void

testFindOrCreate() 공개 메소드

Tests the findOrCreate method.
public testFindOrCreate ( ) : void
리턴 void

testFinding() 공개 메소드

This method runs the actual test pack.
public testFinding ( ) : void
리턴 void

testINClause() 공개 메소드

Test forming IN-clause using genSlots and flat.
public testINClause ( ) : void
리턴 void

testMultiAdvanced() 공개 메소드

Tests the complex use case for findMulti().
public testMultiAdvanced ( ) : void
리턴 void

testTreeTraversal() 공개 메소드

Test tree traversal with searchIn().
public testTreeTraversal ( ) : void
리턴 void