Do you have access to command line?
You can configure phpunit by adding phpunit.xml to your plugin directory and then running the tests from command line simply by running the command "phpunit":
you@somewhere:/path/to/your/plugin$ phpunit
You can see an example of the configuration from the phpunit.xml that can be found from Elgg root directory.
Here you can find detailed documentation on how to configure the phpunit.xml http://phpunit.de/manual/3.7/en/appendixes.configuration.html
Can't you use elgg_list_annotations()? It accepts all the same parameters as elgg_get_annotations() and has pagination by default.
My elgg version is 1.7 . Actually i am getting so many attributes thorugh annotaions. Among those i am using two varibles and displaying them in same page.
Hm... I haven't used Elgg 1.7 in a long time. I think you need to use the 'navigation/pagination' view.
So call elgg_view(''navigation/pagination', array( ... ));
Check the view for detailed documentation about the parameters that you can add to the array.
You want to use one of the elgg_get_entities* functions
http://reference.elgg.org/entities_8php.html#af085c8362e49c4f52d4f1fcf58ca6fb8
look at the parameters:
created_time_lower
created_time_upper
eg.
// this will show all users created in the last week
echo elgg_list_entities(array(
'type' => 'user',
'created_time_lower' => strtotime('-1 week')
));
@Matt Beckett- Thank you very much. So we will be know about which custom plugins are won't work and in which custom plugins we need to do modifications after upgrading the site only.
Is there any documenation for deprectaed functions which won't work in latest versions or Any code changes are complusary needed before upgrading to latest version.
What about custom theme, Is this also same like custom module or should we change it before upgrading?
Can you please give some details about these.
http://docs.elgg.org/wiki/Updating_plugins_for_Elgg_1.8
I don't believe there's an itemized list of 'this function replaced with this function' - deprecated functions will still work, but you can see the deprecation errors if you turn on logging and that will direct you. The biggest change is the views, so those with will need to be looked at which pretty much means your theme will need upgrading for sure.
Try the upgrade on a test installation and see what breaks - that's the best way forward
Thanks @Matt Beckett
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.