Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
e9803599
Commit
e9803599
authored
Jan 10, 2008
by
lsmith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- ws fixes
parent
cb1a71f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
24 deletions
+21
-24
480TestCase.php
tests/Ticket/480TestCase.php
+21
-24
No files found.
tests/Ticket/480TestCase.php
View file @
e9803599
...
...
@@ -30,36 +30,33 @@
* @since 1.0
* @version $Revision$
*/
class
stComment
extends
Doctrine_Record
{
public
function
setTableDefinition
()
{
$this
->
setTableName
(
'st_comment'
);
$this
->
hasColumn
(
'title'
,
'string'
,
100
,
array
());
$this
->
hasColumn
(
'body'
,
'string'
,
1000
,
array
());
}
public
function
setTableDefinition
()
{
$this
->
setTableName
(
'st_comment'
);
$this
->
hasColumn
(
'title'
,
'string'
,
100
,
array
());
$this
->
hasColumn
(
'body'
,
'string'
,
1000
,
array
());
}
}
class
Doctrine_Ticket_480_TestCase
extends
Doctrine_UnitTestCase
class
Doctrine_Ticket_480_TestCase
extends
Doctrine_UnitTestCase
{
public
function
testInit
()
{
public
function
testInit
()
{
$this
->
dbh
=
new
Doctrine_Adapter_Mock
(
'oracle'
);
$this
->
conn
=
Doctrine_Manager
::
getInstance
()
->
openConnection
(
$this
->
dbh
);
}
public
function
testTicket
()
{
$this
->
conn
->
export
->
exportClasses
(
array
(
'stComment'
));
$queries
=
$this
->
dbh
->
getAll
();
}
// (2nd|1st except transaction init.) executed query must be CREATE TABLE or CREATE SEQUENCE, not CREATE TRIGGER
// Trigger can be created after both CREATE TABLE and CREATE SEQUENCE
$this
->
assertFalse
(
preg_match
(
'~^CREATE TRIGGER.*~'
,
$queries
[
1
]
));
$this
->
assertFalse
(
preg_match
(
'~^CREATE TRIGGER.*~'
,
$queries
[
2
])
);
public
function
testTicket
()
{
$this
->
conn
->
export
->
exportClasses
(
array
(
'stComment'
));
$queries
=
$this
->
dbh
->
getAll
(
);
}
}
\ No newline at end of file
// (2nd|1st except transaction init.) executed query must be CREATE TABLE or CREATE SEQUENCE, not CREATE TRIGGER
// Trigger can be created after both CREATE TABLE and CREATE SEQUENCE
$this
->
assertFalse
(
preg_match
(
'~^CREATE TRIGGER.*~'
,
$queries
[
1
]));
$this
->
assertFalse
(
preg_match
(
'~^CREATE TRIGGER.*~'
,
$queries
[
2
]));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment