Skip to content

Commit

Permalink
Base for testing the actual behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
VanTanev committed Oct 5, 2010
1 parent 38cea4f commit 02128f7
Show file tree
Hide file tree
Showing 12 changed files with 236 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ map
lib/model/ncChangeLogEntryQuery.php
test/functional/fixtures/data/sql
test/functional/fixtures/data/database.sqlite
test/functional/fixtures/lib/model
#test/functional/fixtures/lib/model
test/functional/fixtures/plugins
test/functional/fixtures/log
test/functional/fixtures/cache
38 changes: 23 additions & 15 deletions lib/model/plugin/PluginncChangeLogEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,35 @@ public function clearObject()
}


/**
* A method to set the RAW change detail value
*
* @param mixed $v
* @return ncChangeLogEntry
*/
public function setRawChangesDetail($v)
{
return parent::setChangesDetail($v);
}


/**
* A method to get the RAW change detail value
*/
public function getRawChangesDetail()
{
return parent::getChangesDetail();
}


/**
* Returns the changes detail, in the original format it was set
*
* @return array
*/
public function getChangesDetail()
{
return unserialize(base64_decode(parent::getChangesDetail()));
return unserialize(base64_decode($this->getRawChangesDetail()));
}


Expand All @@ -162,20 +183,7 @@ public function getChangesDetail()
*/
public function setChangesDetail(array $v)
{
return parent::setChangesDetail(base64_encode(serialize($v)));
}


/**
* Returns the array of changes
*
* kept for BC
*
* @see PluginncChangeLogEntry::getChangesDetail()
*/
public function getChangesDetailArray()
{
return $this->getChangesDetail();
return $this->setRawChangesDetail(base64_encode(serialize($v)));
}


Expand Down
21 changes: 21 additions & 0 deletions test/functional/fixtures/lib/model/Article.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php


/**
* Skeleton subclass for representing a row from the 'article' table.
*
*
*
* This class was autogenerated by Propel 1.4.2 on:
*
* 09/18/10 00:49:24
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package lib.model
*/
class Article extends BaseArticle {

} // Article
21 changes: 21 additions & 0 deletions test/functional/fixtures/lib/model/ArticlePeer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php


/**
* Skeleton subclass for performing query and update operations on the 'article' table.
*
*
*
* This class was autogenerated by Propel 1.4.2 on:
*
* 09/18/10 00:49:24
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package lib.model
*/
class ArticlePeer extends BaseArticlePeer {

} // ArticlePeer
21 changes: 21 additions & 0 deletions test/functional/fixtures/lib/model/Author.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php


/**
* Skeleton subclass for representing a row from the 'author' table.
*
*
*
* This class was autogenerated by Propel 1.4.2 on:
*
* 09/18/10 00:49:25
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package lib.model
*/
class Author extends BaseAuthor {

} // Author
21 changes: 21 additions & 0 deletions test/functional/fixtures/lib/model/AuthorArticle.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php


/**
* Skeleton subclass for representing a row from the 'author_article' table.
*
*
*
* This class was autogenerated by Propel 1.4.2 on:
*
* 09/18/10 00:49:25
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package lib.model
*/
class AuthorArticle extends BaseAuthorArticle {

} // AuthorArticle
21 changes: 21 additions & 0 deletions test/functional/fixtures/lib/model/AuthorArticlePeer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php


/**
* Skeleton subclass for performing query and update operations on the 'author_article' table.
*
*
*
* This class was autogenerated by Propel 1.4.2 on:
*
* 09/18/10 00:49:25
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package lib.model
*/
class AuthorArticlePeer extends BaseAuthorArticlePeer {

} // AuthorArticlePeer
21 changes: 21 additions & 0 deletions test/functional/fixtures/lib/model/AuthorPeer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php


/**
* Skeleton subclass for performing query and update operations on the 'author' table.
*
*
*
* This class was autogenerated by Propel 1.4.2 on:
*
* 09/18/10 00:49:25
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package lib.model
*/
class AuthorPeer extends BaseAuthorPeer {

} // AuthorPeer
23 changes: 23 additions & 0 deletions test/functional/fixtures/lib/model/Book.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php


/**
* Skeleton subclass for representing a row from the 'book' table.
*
*
*
* This class was autogenerated by Propel 1.4.2 on:
*
* 09/18/10 00:49:25
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package lib.model
*/
class Book extends BaseBook {

} // Book

//sfPropelBehavior::add('Book', array('changelog'));
21 changes: 21 additions & 0 deletions test/functional/fixtures/lib/model/BookPeer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php


/**
* Skeleton subclass for performing query and update operations on the 'book' table.
*
*
*
* This class was autogenerated by Propel 1.4.2 on:
*
* 09/18/10 00:49:25
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package lib.model
*/
class BookPeer extends BaseBookPeer {

} // BookPeer
21 changes: 21 additions & 0 deletions test/functional/fixtures/lib/model/Category.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php


/**
* Skeleton subclass for representing a row from the 'category' table.
*
*
*
* This class was autogenerated by Propel 1.4.2 on:
*
* 09/18/10 00:49:24
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package lib.model
*/
class Category extends BaseCategory {

} // Category
21 changes: 21 additions & 0 deletions test/functional/fixtures/lib/model/CategoryPeer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php


/**
* Skeleton subclass for performing query and update operations on the 'category' table.
*
*
*
* This class was autogenerated by Propel 1.4.2 on:
*
* 09/18/10 00:49:24
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package lib.model
*/
class CategoryPeer extends BaseCategoryPeer {

} // CategoryPeer

0 comments on commit 02128f7

Please sign in to comment.